You are here

public function PluginBase::init in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::init()
  2. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::init()
1 call to PluginBase::init()
None::init in core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.
2 methods override PluginBase::init()
None::init in core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.
StylePluginBase::init in core/modules/views/src/Plugin/views/style/StylePluginBase.php
Overrides \Drupal\views\Plugin\views\PluginBase::init().

File

core/modules/views/src/Plugin/views/PluginBase.php, line 136

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  $this->view = $view;
  $this
    ->setOptionDefaults($this->options, $this
    ->defineOptions());
  $this->displayHandler = $display;
  $this
    ->unpackOptions($this->options, $options);
}