X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FBlock%2FBlockManager.php;h=30b52b612566e34ceab848513110697284912a71;hp=a837340a3c24c60bf2687694254b988181b6979f;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/lib/Drupal/Core/Block/BlockManager.php b/web/core/lib/Drupal/Core/Block/BlockManager.php index a837340a3..30b52b612 100644 --- a/web/core/lib/Drupal/Core/Block/BlockManager.php +++ b/web/core/lib/Drupal/Core/Block/BlockManager.php @@ -20,7 +20,6 @@ class BlockManager extends DefaultPluginManager implements BlockManagerInterface use CategorizingPluginManagerTrait { getSortedDefinitions as traitGetSortedDefinitions; - getGroupedDefinitions as traitGetGroupedDefinitions; } use ContextAwarePluginManagerTrait; @@ -54,23 +53,13 @@ class BlockManager extends DefaultPluginManager implements BlockManagerInterface * {@inheritdoc} */ public function getSortedDefinitions(array $definitions = NULL) { - // Sort the plugins first by category, then by label. + // Sort the plugins first by category, then by admin label. $definitions = $this->traitGetSortedDefinitions($definitions, 'admin_label'); // Do not display the 'broken' plugin in the UI. unset($definitions['broken']); return $definitions; } - /** - * {@inheritdoc} - */ - public function getGroupedDefinitions(array $definitions = NULL) { - $definitions = $this->traitGetGroupedDefinitions($definitions, 'admin_label'); - // Do not display the 'broken' plugin in the UI. - unset($definitions[$this->t('Block')]['broken']); - return $definitions; - } - /** * {@inheritdoc} */