public function ThemeHandlerInterface::getTheme in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getTheme()
- 9 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\Extension\UnknownExtensionException Thrown when the requested theme does not exist.
1 method overrides ThemeHandlerInterface::getTheme()
- ThemeHandler::getTheme in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Returns a theme extension object from the currently active theme list.
File
- core/
lib/ Drupal/ Core/ Extension/ ThemeHandlerInterface.php, line 152
Class
- ThemeHandlerInterface
- Manages the list of available themes.
Namespace
Drupal\Core\ExtensionCode
public function getTheme($name);