function ThemeInitializationInterface::getActiveTheme

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

Builds up the active theme object from extensions.

Parameters

\Drupal\Core\Extension\Extension $theme: The theme extension object.

\Drupal\Core\Extension\Extension[] $base_themes: An array of extension objects of base theme and its bases. It is ordered by 'next parent first', meaning the top level of the chain will be first.

Return value

\Drupal\Core\Theme\ActiveTheme The active theme instance for the passed in $theme.

1 method overrides ThemeInitializationInterface::getActiveTheme()
ThemeInitialization::getActiveTheme in core/lib/Drupal/Core/Theme/ThemeInitialization.php
Builds up the active theme object from extensions.

File

core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php, line 62

Class

ThemeInitializationInterface
Defines an interface which contain theme initialization logic.

Namespace

Drupal\Core\Theme

Code

public function getActiveTheme(Extension $theme, array $base_themes = []);

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