function IconExtractorInterface::discoverIcons
Get a list of all the icons discovered by this extractor.
The icons must be provided as an associative array keyed by the icon id with values used to load the icon: source and group.
Return value
array List of icons that are found by this extractor. Keyed by icon full id.
5 methods override IconExtractorInterface::discoverIcons()
- 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.
- SvgSpriteExtractor::discoverIcons in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ SvgSpriteExtractor.php - Get a list of all the icons discovered by this extractor.
- TestExtractor::discoverIcons in core/
modules/ system/ tests/ modules/ icon_test/ src/ Plugin/ IconExtractor/ TestExtractor.php - Get a list of all the icons discovered by this extractor.
- TestExtractorWithFinder::discoverIcons in core/
modules/ system/ tests/ modules/ icon_test/ src/ Plugin/ IconExtractor/ TestExtractorWithFinder.php - Get a list of all the icons discovered by this extractor.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorInterface.php, line 26
Class
- IconExtractorInterface
- Interface for icon_extractor plugins.
Namespace
Drupal\Core\Theme\IconCode
public function discoverIcons() : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.