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

Breadcrumb

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

function 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 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);

API Navigation

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