You are here

public function LinkEdit::buildOptionsForm in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/locale/Plugin/views/field/LinkEdit.php \Views\locale\Plugin\views\field\LinkEdit::buildOptionsForm()
  2. 8.3 lib/Views/comment/Plugin/views/field/LinkEdit.php \Views\comment\Plugin\views\field\LinkEdit::buildOptionsForm()
  3. 8.3 lib/Views/taxonomy/Plugin/views/field/LinkEdit.php \Views\taxonomy\Plugin\views\field\LinkEdit::buildOptionsForm()

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

Overrides Link::buildOptionsForm

File

lib/Views/comment/Plugin/views/field/LinkEdit.php, line 31
Definition of Views\comment\Plugin\views\field\LinkEdit.

Class

LinkEdit
Field handler to present a link node edit.

Namespace

Views\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',
  );
}