function IconDefinition::getLabel
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Icon/IconDefinition.php \Drupal\Core\Theme\Icon\IconDefinition::getLabel()
Get the icon label as human friendly.
Return value
string The icon label.
Overrides IconDefinitionInterface::getLabel
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconDefinition.php, line 123
Class
- IconDefinition
- Handle an icon definition.
Namespace
Drupal\Core\Theme\IconCode
public function getLabel() : string {
return self::humanize($this->icon_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.