function IconPackManagerInterface::getIcon
Get definition of a specific icon.
Parameters
string $icon_full_id: The ID of the icon to retrieve, include pack id.
Return value
\Drupal\Core\Theme\Icon\IconDefinitionInterface|null Icon definition.
1 method overrides IconPackManagerInterface::getIcon()
- IconPackManager::getIcon in core/
lib/ Drupal/ Core/ Theme/ Icon/ Plugin/ IconPackManager.php - Get definition of a specific icon.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ Plugin/ IconPackManagerInterface.php, line 39
Class
- IconPackManagerInterface
- Interface for icon pack manager.
Namespace
Drupal\Core\Theme\Icon\PluginCode
public function getIcon(string $icon_full_id) : ?IconDefinitionInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.