protected function ImcePluginManager::findDefinitions in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImcePluginManager.php \Drupal\imce\ImcePluginManager::findDefinitions()
Finds plugin definitions.
Return value
array List of definitions to store in cache.
Overrides DefaultPluginManager::findDefinitions
File
- src/
ImcePluginManager.php, line 56
Class
- ImcePluginManager
- Provides a plugin manager for Imce Plugins.
Namespace
Drupal\imceCode
protected function findDefinitions() {
$definitions = parent::findDefinitions();
// Sort definitions by weight.
uasort($definitions, [
'Drupal\\Component\\Utility\\SortArray',
'sortByWeightElement',
]);
return $definitions;
}