You are here

public function Skin::skinLabel in Skinr 8.2

Returns the theme label.

File

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

Class

Skin
Defines the Skin entity.

Namespace

Drupal\skinr\Entity

Code

public function skinLabel() {
  $cache =& drupal_static(__FUNCTION__);
  if (!isset($cache[$this->skin])) {
    $skin_infos = skinr_get_skin_info();

    // Add custom info.
    $skin_infos['_additional'] = array(
      'title' => t('Additional'),
    );
    $cache[$this->skin] = $skin_infos[$this->skin]['title'];
  }
  return $cache[$this->skin];
}