function ThemeHandlerInterface::getName

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getName()
  2. 10 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getName()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::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.

1 method overrides ThemeHandlerInterface::getName()
ThemeHandler::getName in core/lib/Drupal/Core/Extension/ThemeHandler.php
Gets the human readable name of a given theme.

File

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

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getName($theme);

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