function CurrentThemeCondition::__construct
Same name and namespace in other branches
- 11.x core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php \Drupal\system\Plugin\Condition\CurrentThemeCondition::__construct()
- 10 core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php \Drupal\system\Plugin\Condition\CurrentThemeCondition::__construct()
- 9 core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php \Drupal\system\Plugin\Condition\CurrentThemeCondition::__construct()
- 8.9.x core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php \Drupal\system\Plugin\Condition\CurrentThemeCondition::__construct()
Constructs a CurrentThemeCondition condition plugin.
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.
\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The theme manager.
\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The theme handler.
Overrides ConditionPluginBase::__construct
File
-
core/
modules/ system/ src/ Plugin/ Condition/ CurrentThemeCondition.php, line 36
Class
- CurrentThemeCondition
- Provides a 'Current Theme' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected ThemeManagerInterface $themeManager, protected ThemeHandlerInterface $themeHandler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.