You are here

public function Path::init in Views (for Drupal 7) 8.3

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

Overrides FieldPluginBase::init

File

lib/Views/node/Plugin/views/field/Path.php, line 29
Definition of Views\node\Plugin\views\field\Path.

Class

Path
Field handler to present the path to the node.

Namespace

Views\node\Plugin\views\field

Code

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