public function UpdateManager::getDefinitions in Express 8
Gets the definition of all plugins for this type.
Return value
mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.
Overrides PluginManager::getDefinitions
See also
\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()
1 call to UpdateManager::getDefinitions()
- UpdateManager::getSchemas in themes/
contrib/ bootstrap/ src/ Plugin/ UpdateManager.php - Retrieves the update schema identifiers.
File
- themes/
contrib/ bootstrap/ src/ Plugin/ UpdateManager.php, line 44 - Contains \Drupal\bootstrap\Plugin\UpdateManager.
Class
- UpdateManager
- Manages discovery and instantiation of Bootstrap updates.
Namespace
Drupal\bootstrap\PluginCode
public function getDefinitions($sorted = TRUE) {
$definitions = parent::getDefinitions();
// Sort by the schema number (a.k.a. plugin ID).
if ($sorted) {
uasort($definitions, function ($a, $b) {
return SortArray::sortByKeyInt($a, $b, 'id');
});
}
return $definitions;
}