public function LinkEdit::buildOptionsForm

Same name in this branch
  1. 9.x drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php \Drupal\taxonomy\Plugin\views\field\LinkEdit::buildOptionsForm()
  2. 9.x drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php \Drupal\comment\Plugin\views\field\LinkEdit::buildOptionsForm()

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php, line 48
Definition of Drupal\taxonomy\Plugin\views\field\LinkEdit.

Class

LinkEdit
Field handler to present a term edit link.

Namespace

Drupal\taxonomy\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $this->options['text'],
  );
  parent::buildOptionsForm($form, $form_state);
}