public function TaxonomyAutocompleteWidget::settingsForm

Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::settingsForm().

Overrides WidgetBase::settingsForm

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/widget/TaxonomyAutocompleteWidget.php, line 37
Definition of Drupal\taxonomy\Plugin\field\widget\TaxonomyAutocompleteWidget.

Class

TaxonomyAutocompleteWidget
Plugin implementation of the 'taxonomy_autocomplete' widget.

Namespace

Drupal\taxonomy\Plugin\field\widget

Code

public function settingsForm(array $form, array &$form_state) {
  $element['placeholder'] = array(
    '#type' => 'textfield',
    '#title' => t('Placeholder'),
    '#default_value' => $this
      ->getSetting('placeholder'),
    '#description' => t('The placeholder is a short hint (a word or short phrase) intended to aid the user with data entry. A hint could be a sample value or a brief description of the expected format.'),
  );
  return $element;
}