public function ThemeHandler::getName in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::getName()
- 9 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::getName()
Gets the human readable name of a given theme.
Parameters
string $theme: The machine name of the theme which title should be shown.
Return value
string Returns the human readable name of the theme.
Throws
\Drupal\Core\Extension\Exception\UnknownExtensionException When the specified theme does not exist.
Overrides ThemeHandlerInterface::getName
File
- core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php, line 141
Class
- ThemeHandler
- Default theme handler using the config system to store installation statuses.
Namespace
Drupal\Core\ExtensionCode
public function getName($theme) {
return $this->themeList
->getName($theme);
}