function 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.

Overrides ThemeHandlerInterface::getName

File

core/lib/Drupal/Core/Extension/ThemeHandler.php, line 152

Class

ThemeHandler
Default theme handler using the config system to store installation statuses.

Namespace

Drupal\Core\Extension

Code

public function getName($theme) {
  return $this->themeList
    ->getName($theme);
}

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