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