public function Node::init in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::init()
Initialize the plugin.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.
array $options: The options configured for this plugin.
Overrides FieldPluginBase::init
1 call to Node::init()
- HistoryUserTimestamp::init in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Initialize the plugin.
1 method overrides Node::init()
- HistoryUserTimestamp::init in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Initialize the plugin.
File
- core/
modules/ node/ src/ Plugin/ views/ field/ Node.php, line 31 - Contains \Drupal\node\Plugin\views\field\Node.
Class
- Node
- Field handler to provide simple renderer that allows linking to a node. Definition terms:
Namespace
Drupal\node\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
// Don't add the additional fields to groupby
if (!empty($this->options['link_to_node'])) {
$this->additional_fields['nid'] = array(
'table' => 'node_field_data',
'field' => 'nid',
);
}
}