function IconDefinition::createIconId
Create an icon full id.
Parameters
string $pack_id: The id of the icon pack.
string $icon_id: The id of the icon.
Return value
string The icon full id.
Overrides IconDefinitionInterface::createIconId
6 calls to IconDefinition::createIconId()
- Icon::preRenderIcon in core/
lib/ Drupal/ Core/ Render/ Element/ Icon.php  - Icon element pre render callback.
 - IconDefinitionTest::testCreateIcon in core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconDefinitionTest.php  - Test the IconDefinition::createIcon method.
 - IconTest::testPreRenderIcon in core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconTest.php  - Test the Icon::preRenderIcon method.
 - PathExtractor::discoverIcons in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ PathExtractor.php  - Get a list of all the icons discovered by this extractor.
 - SvgExtractor::discoverIcons in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ SvgExtractor.php  - Get a list of all the icons discovered by this extractor.
 
File
- 
              core/
lib/ Drupal/ Core/ Theme/ Icon/ IconDefinition.php, line 81  
Class
- IconDefinition
 - Handle an icon definition.
 
Namespace
Drupal\Core\Theme\IconCode
public static function createIconId(string $pack_id, string $icon_id) : string {
  return sprintf('%s%s%s', $pack_id, self::ICON_SEPARATOR, $icon_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.