function ThemeManagerInterface::getActiveTheme

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::getActiveTheme()
  2. 8.9.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::getActiveTheme()
  3. 11.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::getActiveTheme()

Returns the active theme object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface|null $route_match: The route match.

Return value

\Drupal\Core\Theme\ActiveTheme

File

core/lib/Drupal/Core/Theme/ThemeManagerInterface.php, line 40

Class

ThemeManagerInterface
Provides a high level access to the active theme and methods to use it.

Namespace

Drupal\Core\Theme

Code

public function getActiveTheme(?RouteMatchInterface $route_match = NULL);

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