public function ButtonField::instanceSettingsForm in Button Field 8        
                          
                  
                        
File
 
   - src/Plugin/Field/FieldType/ButtonField.php, line 80
- Contains Drupal\button_field\Plugin\Field\FieldType\ButtonField.
Class
  
  - ButtonField 
- Plugin implementation of the 'button_field' field type.
Namespace
  Drupal\button_field\Plugin\Field\FieldType
Code
public function instanceSettingsForm(array $form, array &$form_state) {
  $element = array();
  $element['additional_classes'] = array(
    '#type' => 'textfield',
    '#title' => t('Additional classes'),
    '#default_value' => $this
      ->getSetting('additional_classes'),
    '#description' => t('Optionally, specify any classes to be applied to the element. All button field elements will always have the "button_field" class. Separate multiple classes with a space.'),
  );
  return $element;
}