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