You are here

public function PluginBase::__construct in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
  2. 10 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
  2. 9 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.

4 calls to PluginBase::__construct()
Permission::__construct in core/modules/user/src/Plugin/views/access/Permission.php
Constructs a Permission object.
Role::__construct in core/modules/user/src/Plugin/views/access/Role.php
Constructs a Role object.
SqlBase::__construct in core/modules/views/src/Plugin/views/pager/SqlBase.php
Constructs a SqlBase object.
Time::__construct in core/modules/views/src/Plugin/views/cache/Time.php
Constructs a Time cache plugin object.
7 methods override PluginBase::__construct()
CacheableMetadataCalculationTest::__construct in core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php
Constructs a CacheableMetadataCalculationTest access plugin.
Permission::__construct in core/modules/user/src/Plugin/views/access/Permission.php
Constructs a Permission object.
Role::__construct in core/modules/user/src/Plugin/views/access/Role.php
Constructs a Role object.
Serializer::__construct in core/modules/rest/src/Plugin/views/style/Serializer.php
Constructs a Plugin object.
SqlBase::__construct in core/modules/views/src/Plugin/views/pager/SqlBase.php
Constructs a SqlBase object.

... See full list

File

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

Class

PluginBase

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