function PluginDependencyTrait::themeHandler

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::themeHandler()
  2. 8.9.x core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::themeHandler()
  3. 10 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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.