You are here

protected function FieldStorageFormatManager::findDefinitions in Apigee Edge 8

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

File

src/Plugin/FieldStorageFormatManager.php, line 50

Class

FieldStorageFormatManager
Provides a FieldStorageFormat plugin manager.

Namespace

Drupal\apigee_edge\Plugin

Code

protected function findDefinitions() : array {
  $definitions = parent::findDefinitions();
  uasort($definitions, function (array $def0, array $def1) {
    return ($def0['weight'] ?? 0) <=> ($def1['weight'] ?? 0);
  });
  return $definitions;
}