public function ButtonField::settingsForm in Button Field 8
File
- src/
Plugin/ Field/ FieldType/ ButtonField.php, line 96 - Contains Drupal\button_field\Plugin\Field\FieldType\ButtonField.
Class
- ButtonField
- Plugin implementation of the 'button_field' field type.
Namespace
Drupal\button_field\Plugin\Field\FieldTypeCode
public function settingsForm(array $form, array &$form_state, $has_data) {
$element = array();
$element['confirmation'] = array(
'#type' => 'textfield',
'#title' => t('Confirmation message'),
'#default_value' => $this
->getSetting('confirmation'),
'#description' => t('You may enter a confirmation message to be displayed to the user before running any rules. If you do not want the user to see a confirmation message you can leave this setting empty.'),
);
return $element;
}