You are here

protected function ImcePluginManager::findDefinitions in IMCE 8

Same name and namespace in other branches
  1. 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\imce

Code

protected function findDefinitions() {
  $definitions = parent::findDefinitions();

  // Sort definitions by weight.
  uasort($definitions, [
    'Drupal\\Component\\Utility\\SortArray',
    'sortByWeightElement',
  ]);
  return $definitions;
}