function ThemeHandlerInterface::getTheme

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getTheme()
  2. 8.9.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getTheme()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getTheme()

Returns a theme extension object from the currently active theme list.

Parameters

string $name: The name of the theme to return.

Return value

\Drupal\Core\Extension\Extension An extension object.

Throws

\Drupal\Core\Extension\Exception\UnknownExtensionException Thrown when the requested theme does not exist.

File

core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 159

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getTheme($name);

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