function CurrentThemeCondition::create
Instantiates a new instance of the implementing class using autowiring.
Return value
static
Overrides PluginBase::create
File
-
core/
modules/ system/ src/ Plugin/ Condition/ CurrentThemeCondition.php, line 60
Class
- CurrentThemeCondition
- Provides a 'Current Theme' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('theme.manager'), $container->get('theme_handler'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.