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\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
$this->additional_fields['nid'] = 'nid';
}