public function AccesslogPath::init in Views (for Drupal 7) 8.3
Override init function to provide generic option to link to node.
Overrides FieldPluginBase::init
File
- lib/
Views/ statistics/ Plugin/ views/ field/ AccesslogPath.php, line 29 - Definition of Views\statistics\Plugin\views\field\AccesslogPath.
Class
- AccesslogPath
- Field handler to provide simple renderer that turns a URL into a clickable link.
Namespace
Views\statistics\Plugin\views\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
if (!empty($this->options['display_as_link'])) {
$this->additional_fields['path'] = 'path';
}
}