You are here

public function Node::buildOptionsForm in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/argument_validator/Node.php \Views\node\Plugin\views\argument_validator\Node::buildOptionsForm()
  2. 8.3 lib/Views/node/Plugin/views/field/Node.php \Views\node\Plugin\views\field\Node::buildOptionsForm()

Provide link to node option

Overrides FieldPluginBase::buildOptionsForm

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

File

lib/Views/node/Plugin/views/field/Node.php, line 48
Definition of Views\node\Plugin\views\field\Node.

Class

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

Namespace

Views\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);
}