function IconDefinition::getPackLabel
Get the icon pack label.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup|null The icon pack label.
Overrides IconDefinitionInterface::getPackLabel
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconDefinition.php, line 172
Class
- IconDefinition
- Handle an icon definition.
Namespace
Drupal\Core\Theme\IconCode
public function getPackLabel() : ?TranslatableMarkup {
return $this->data['label'] ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.