function IconExtractorInterface::loadIcon
Load an icon object.
Parameters
array $icon_data: The icon data build in the discoverIcons() method.
Return value
\Drupal\Core\Theme\Icon\IconDefinitionInterface|null The icon.
1 method overrides IconExtractorInterface::loadIcon()
- IconExtractorBase::loadIcon in core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorBase.php - Load an icon object.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorInterface.php, line 37
Class
- IconExtractorInterface
- Interface for icon_extractor plugins.
Namespace
Drupal\Core\Theme\IconCode
public function loadIcon(array $icon_data) : ?IconDefinitionInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.