public function ThemeManagerInterface::getActiveTheme in Drupal 9
Same name and namespace in other branches
- 8 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
1 method overrides ThemeManagerInterface::getActiveTheme()
- ThemeManager::getActiveTheme in core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php - Returns the active theme object.
File
- core/
lib/ Drupal/ Core/ Theme/ ThemeManagerInterface.php, line 39
Class
- ThemeManagerInterface
- Provides a high level access to the active theme and methods to use it.
Namespace
Drupal\Core\ThemeCode
public function getActiveTheme(RouteMatchInterface $route_match = NULL);