function ThemeInitializationInterface::initTheme

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

Initializes a given theme.

This loads the active theme, for example include its engine file.

Parameters

string $theme_name: The machine name of the theme.

Return value

\Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme.

File

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

Class

ThemeInitializationInterface
Defines an interface which contain theme initialization logic.

Namespace

Drupal\Core\Theme

Code

public function initTheme($theme_name);

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