public function Node::buildOptionsForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::buildOptionsForm()
Provide link to node option
Overrides FieldPluginBase::buildOptionsForm
1 call to Node::buildOptionsForm()
- HistoryUserTimestamp::buildOptionsForm in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Provide link to node option
1 method overrides Node::buildOptionsForm()
- HistoryUserTimestamp::buildOptionsForm in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Provide link to node option
File
- core/
modules/ node/ src/ Plugin/ views/ field/ Node.php, line 47
Class
- Node
- Field handler to provide simple renderer that allows linking to a node. Definition terms:
Namespace
Drupal\node\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['link_to_node'] = [
'#title' => $this
->t('Link this field to the original piece of content'),
'#description' => $this
->t("Enable to override this field's links."),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_node']),
];
parent::buildOptionsForm($form, $form_state);
}