You are here

protected function FieldHandlerPluginManager::findDefinitions in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::findDefinitions()
  2. 2.0.x src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::findDefinitions()

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

File

src/Plugin/Type/FieldHandlerPluginManager.php, line 91

Class

FieldHandlerPluginManager
Manages discovery and instantiation of field handler plugins.

Namespace

Drupal\cms_content_sync\Plugin\Type

Code

protected function findDefinitions() {
  $definitions = parent::findDefinitions();
  uasort($definitions, function ($a, $b) {
    return $a['weight'] <=> $b['weight'];
  });
  return $definitions;
}