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