Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PluginDependencyTrait.php

function PluginDependencyTrait::themeHandler

Wraps the theme handler.

Return value

\Drupal\Core\Extension\ThemeHandlerInterface 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');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal