public function CurrentThemeCondition::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 $theme_manager: The theme manager.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
Overrides ConditionPluginBase::__construct
File
- core/
modules/ system/ src/ Plugin/ Condition/ CurrentThemeCondition.php, line 55 - Contains \Drupal\system\Plugin\Condition\CurrentThemeCondition.
Class
- CurrentThemeCondition
- Provides a 'Current Theme' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ThemeManagerInterface $theme_manager, ThemeHandlerInterface $theme_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->themeManager = $theme_manager;
$this->themeHandler = $theme_handler;
}