public function Node::buildOptionsForm

Same name in this branch
  1. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::buildOptionsForm()
  2. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument_validator/Node.php \Drupal\node\Plugin\views\argument_validator\Node::buildOptionsForm()

Provide link to node option

Overrides FieldPluginBase::buildOptionsForm

4 calls to Node::buildOptionsForm()
HistoryUserTimestamp::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/HistoryUserTimestamp.php
Provide link to node option
Language::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php
Provide link to node option
Revision::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php
Provide link to revision option.
Type::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php
Provide machine_name option for to node type display.
4 methods override Node::buildOptionsForm()
HistoryUserTimestamp::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/HistoryUserTimestamp.php
Provide link to node option
Language::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php
Provide link to node option
Revision::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php
Provide link to revision option.
Type::buildOptionsForm in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php
Provide machine_name option for to node type display.

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php, line 48
Definition of Drupal\node\Plugin\views\field\Node.

Class

Node
Field handler to provide simple renderer that allows linking to a node. Definition terms:

Namespace

Drupal\node\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['link_to_node'] = array(
    '#title' => t('Link this field to the original piece of content'),
    '#description' => t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_node']),
  );
  parent::buildOptionsForm($form, $form_state);
}