You are here

protected function Node::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::defineOptions()
  2. 9 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::defineOptions()
1 call to Node::defineOptions()
HistoryUserTimestamp::defineOptions in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
1 method overrides Node::defineOptions()
HistoryUserTimestamp::defineOptions in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php

File

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

Class

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

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;
}