function Node::defineOptions

Same name and namespace in other branches
  1. 11.x core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::defineOptions()

File

core/modules/node/src/Plugin/views/field/Node.php, line 40

Class

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

Namespace

Drupal\node\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['link_to_node'] = [
    'default' => $this->definition['link_to_node default'] ?? FALSE,
  ];
  return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.