function PluginDependencyTrait::themeHandler
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::themeHandler()
- 8.9.x core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::themeHandler()
- 11.x core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::themeHandler()
Wraps the theme handler.
Return value
\Drupal\Core\Extension\ThemeHandlerInterface The theme handler.
1 method overrides PluginDependencyTrait::themeHandler()
- TestPluginDependency::themeHandler in core/
tests/ Drupal/ Tests/ Core/ Plugin/ PluginDependencyTraitTest.php
File
-
core/
lib/ Drupal/ Core/ Plugin/ PluginDependencyTrait.php, line 108
Class
- PluginDependencyTrait
- Provides a trait for calculating the dependencies of a plugin.
Namespace
Drupal\Core\PluginCode
protected function themeHandler() {
return \Drupal::service('theme_handler');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.