function ConditionPluginBase::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
  2. 10 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
  3. 11.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
5 calls to ConditionPluginBase::__construct()
CurrentThemeCondition::__construct in core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
Constructs a CurrentThemeCondition condition plugin.
EntityBundle::__construct in core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php
Creates a new EntityBundle instance.
Language::__construct in core/modules/language/src/Plugin/Condition/Language.php
Creates a new Language instance.
NodeType::__construct in core/modules/node/src/Plugin/Condition/NodeType.php
Creates a new NodeType instance.
RequestPath::__construct in core/modules/system/src/Plugin/Condition/RequestPath.php
Constructs a RequestPath condition plugin.
5 methods override ConditionPluginBase::__construct()
CurrentThemeCondition::__construct in core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
Constructs a CurrentThemeCondition condition plugin.
EntityBundle::__construct in core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php
Creates a new EntityBundle instance.
Language::__construct in core/modules/language/src/Plugin/Condition/Language.php
Creates a new Language instance.
NodeType::__construct in core/modules/node/src/Plugin/Condition/NodeType.php
Creates a new NodeType instance.
RequestPath::__construct in core/modules/system/src/Plugin/Condition/RequestPath.php
Constructs a RequestPath condition plugin.

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 34

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.