function ConditionPluginBase::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
- 8.9.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
- 11.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
4 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.
- 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 35
Class
- ConditionPluginBase
- Provides a basis for fulfilling contexts for condition plugins.
Namespace
Drupal\Core\ConditionCode
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.