public function NodeLink::buildOptionsForm in Views (for Drupal 7) 8.3
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- lib/
Views/ comment/ Plugin/ views/ field/ NodeLink.php, line 31 - Definition of Views\comment\Plugin\views\field\NodeLink.
Class
- NodeLink
- Handler for showing comment module's node link.
Namespace
Views\comment\Plugin\views\fieldCode
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);
}