protected function IconRendererManager::findDefinitions in Icon API 8
Finds plugin definitions.
Return value
array List of definitions to store in cache.
Overrides DefaultPluginManager::findDefinitions
File
- src/
IconRendererManager.php, line 56
Class
- IconRendererManager
- Class IconRendererManager
Namespace
Drupal\iconCode
protected function findDefinitions() {
$definitions = parent::findDefinitions();
if (isset($definitions['default'])) {
// Always put default first.
$definitions = [
'default' => $definitions['default'],
] + $definitions;
}
return $definitions;
}