public function IconProviderManager::getInstances in Icon API 8
Retrieves all available handler instances.
Return value
\Drupal\icon\Plugin\Icon\IconProviderInterface[]
File
- src/
IconProviderManager.php, line 70
Class
- IconProviderManager
- Class IconProviderManager
Namespace
Drupal\iconCode
public function getInstances() {
$instances = [];
foreach (array_keys($this
->getDefinitions()) as $plugin_id) {
$instances[$plugin_id] = $this
->createInstance($plugin_id);
}
return $instances;
}