You are here

protected function BUEditorPluginManager::findDefinitions in BUEditor 8.2

Same name and namespace in other branches
  1. 8 src/BUEditorPluginManager.php \Drupal\bueditor\BUEditorPluginManager::findDefinitions()

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

File

src/BUEditorPluginManager.php, line 56

Class

BUEditorPluginManager
Provides a plugin manager for BUEditor Plugins.

Namespace

Drupal\bueditor

Code

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

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