public function NodeLink::buildOptionsForm

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

Overrides FieldPluginBase::buildOptionsForm

File

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

Class

NodeLink
Handler for showing comment module's node link.

Namespace

Drupal\comment\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['teaser'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show teaser-style link'),
    '#default_value' => $this->options['teaser'],
    '#description' => t('Show the comment link in the form used on standard node teasers, rather than the full node form.'),
  );
  parent::buildOptionsForm($form, $form_state);
}