You are here

public function PluginBase::init in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::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 ViewsPluginInterface::init

6 calls to PluginBase::init()
DataFieldRow::init in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Initialize the plugin.
EntityRow::init in core/modules/views/src/Plugin/views/row/EntityRow.php
Initialize the plugin.
HandlerBase::init in core/modules/views/src/Plugin/views/HandlerBase.php
Initialize the plugin.
None::init in core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.
Sql::init in core/modules/views/src/Plugin/views/query/Sql.php
Initialize the plugin.

... See full list

6 methods override PluginBase::init()
DataFieldRow::init in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Initialize the plugin.
EntityRow::init in core/modules/views/src/Plugin/views/row/EntityRow.php
Initialize the plugin.
HandlerBase::init in core/modules/views/src/Plugin/views/HandlerBase.php
Initialize the plugin.
None::init in core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.
Sql::init in core/modules/views/src/Plugin/views/query/Sql.php
Initialize the plugin.

... See full list

File

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

Class

PluginBase
Base class for any views plugin types.

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);
}