You are here

public function PluginBase::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
  2. 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()

Constructs a PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

15 calls to PluginBase::__construct()
DisplayPluginBase::__construct in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Constructs a new DisplayPluginBase object.
Entity::__construct in core/modules/views/src/Plugin/views/argument_validator/Entity.php
Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
EntityRow::__construct in core/modules/views/src/Plugin/views/row/EntityRow.php
HandlerBase::__construct in core/modules/views/src/Plugin/views/HandlerBase.php
Constructs a Handler object.
Node::__construct in core/modules/node/src/Plugin/views/argument_default/Node.php
Constructs a new Node instance.

... See full list

15 methods override PluginBase::__construct()
DisplayPluginBase::__construct in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Constructs a new DisplayPluginBase object.
Entity::__construct in core/modules/views/src/Plugin/views/argument_validator/Entity.php
Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
EntityRow::__construct in core/modules/views/src/Plugin/views/row/EntityRow.php
HandlerBase::__construct in core/modules/views/src/Plugin/views/HandlerBase.php
Constructs a Handler object.
Node::__construct in core/modules/node/src/Plugin/views/argument_default/Node.php
Constructs a new Node instance.

... See full list

File

core/modules/views/src/Plugin/views/PluginBase.php, line 125
Contains \Drupal\views\Plugin\views\PluginBase.

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->definition = $plugin_definition + $configuration;
}