public function LinkEdit::buildOptionsForm

Same name in this branch
  1. 8.x drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php \Drupal\taxonomy\Plugin\views\field\LinkEdit::buildOptionsForm()
  2. 8.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 Link::buildOptionsForm

File

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

Class

LinkEdit
Field handler to present a link node edit.

Namespace

Drupal\comment\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['destination'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use destination'),
    '#description' => t('Add destination to the link'),
    '#default_value' => $this->options['destination'],
    '#fieldset' => 'more',
  );
}