Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Node.php

function Node::defineOptions

Overrides FieldPluginBase::defineOptions

2 calls to Node::defineOptions()
HistoryUserTimestamp::defineOptions in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
Information about options for all kinds of purposes will be held here.
HistoryUserTimestamp::defineOptions in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
Information about options for all kinds of purposes will be held here.
1 method overrides Node::defineOptions()
HistoryUserTimestamp::defineOptions in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
Information about options for all kinds of purposes will be held here.

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal