You are here

public function Skin::themeLabel in Skinr 8.2

Returns the theme label.

File

src/Entity/Skin.php, line 115
Contains \Drupal\skinr\Entity\Skin.

Class

Skin
Defines the Skin entity.

Namespace

Drupal\skinr\Entity

Code

public function themeLabel() {
  $cache =& drupal_static(__FUNCTION__);
  if (!isset($cache[$this->theme])) {
    $theme = \Drupal::service('theme_handler')
      ->getTheme($this->theme);
    $cache[$this->theme] = $theme->info['name'];
  }
  return $cache[$this->theme];
}