public function ConditionPluginBase::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::__construct()
Constructs a \Drupal\Component\Plugin\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
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\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
}