public function Node::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\HandlerBase::init().
Overrides FieldPluginBase::init
2 calls to Node::init()
- HistoryUserTimestamp::init in lib/
Views/ node/ Plugin/ views/ field/ HistoryUserTimestamp.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
- Revision::init in lib/
Views/ node/ Plugin/ views/ field/ Revision.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
2 methods override Node::init()
- HistoryUserTimestamp::init in lib/
Views/ node/ Plugin/ views/ field/ HistoryUserTimestamp.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
- Revision::init in lib/
Views/ node/ Plugin/ views/ field/ Revision.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
File
- lib/
Views/ node/ Plugin/ views/ field/ Node.php, line 28 - Definition of Views\node\Plugin\views\field\Node.
Class
- Node
- Field handler to provide simple renderer that allows linking to a node. Definition terms:
Namespace
Views\node\Plugin\views\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
// Don't add the additional fields to groupby
if (!empty($this->options['link_to_node'])) {
$this->additional_fields['nid'] = array(
'table' => 'node',
'field' => 'nid',
);
if (module_exists('translation')) {
$this->additional_fields['langcode'] = array(
'table' => 'node',
'field' => 'langcode',
);
}
}
}