You are here

protected function PluginDependencyTrait::themeHandler in Drupal 9

Same name and namespace in other branches
  1. 8 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
Wraps the theme handler.

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\Plugin

Code

protected function themeHandler() {
  return \Drupal::service('theme_handler');
}