public function Path::init

Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().

Overrides FieldPluginBase::init

File

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

Class

Path
Field handler to present the path to the node.

Namespace

Drupal\node\Plugin\views\field

Code

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->additional_fields['nid'] = 'nid';
}