Skip to content

Commit

Permalink
Set field icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Mar 24, 2023
1 parent c021538 commit 4bf8242
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/IssuersField.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ public function get_form_editor_field_settings() {
];
}

/**
* Returns the field's form editor icon.
*
* This could be an icon url or a gform-icon class.
*
* @link https://github.com/pronamic/gravityforms/blob/2.7.3/includes/fields/class-gf-field-address.php#L51-L62
* @return string
*/
public function get_form_editor_field_icon() {
return 'gform-icon--quiz';
}

/**
* Get the iDEAL gateway for this field.
*
Expand Down
12 changes: 12 additions & 0 deletions src/PaymentMethodsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ public function get_form_editor_field_settings() {
];
}

/**
* Returns the field's form editor icon.
*
* This could be an icon url or a gform-icon class.
*
* @link https://github.com/pronamic/gravityforms/blob/2.7.3/includes/fields/class-gf-field-address.php#L51-L62
* @return string
*/
public function get_form_editor_field_icon() {
return 'gform-icon--credit-card';
}

/**
* Get the gateways for this field.
*
Expand Down

0 comments on commit 4bf8242

Please sign in to comment.