function IconExtractorInterface::discoverIcons

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/Icon/IconExtractorInterface.php \Drupal\Core\Theme\Icon\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.

2 methods override IconExtractorInterface::discoverIcons()
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\Icon

Code

public function discoverIcons() : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.