protected function UpdateRunnerManager::findDefinitions in Scheduled Updates 8
Finds plugin definitions.
Return value
array List of definitions to store in cache.
Overrides DefaultPluginManager::findDefinitions
File
- src/
Plugin/ UpdateRunnerManager.php, line 37 - Contains \Drupal\scheduled_updates\Plugin\UpdateRunnerManager.
Class
Namespace
Drupal\scheduled_updates\PluginCode
protected function findDefinitions() {
$definitions = parent::findDefinitions();
if (isset($definitions['default'])) {
// Always put default first.
$definitions = [
'default' => $definitions['default'],
] + $definitions;
}
return $definitions;
}