public function EntityLink::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Plugin/views/field/EntityLink.php \Drupal\comment\Plugin\views\field\EntityLink::buildOptionsForm()
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- core/
modules/ comment/ src/ Plugin/ views/ field/ EntityLink.php, line 42 - Contains \Drupal\comment\Plugin\views\field\EntityLink.
Class
- EntityLink
- Handler for showing comment module's entity links.
Namespace
Drupal\comment\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['teaser'] = array(
'#type' => 'checkbox',
'#title' => $this
->t('Show teaser-style link'),
'#default_value' => $this->options['teaser'],
'#description' => $this
->t('Show the comment link in the form used on standard entity teasers, rather than the full entity form.'),
);
parent::buildOptionsForm($form, $form_state);
}