diff -u b/core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php b/core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php --- b/core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php +++ b/core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php @@ -34,9 +34,10 @@ /** * {@inheritdoc} */ - public function access(AccountInterface $account, $return_as_object = FALSE) { - $access = AccessResult::allowedIfHasPermission($account, 'access shortcuts'); - return $return_as_object ? $access : $access->isAllowed(); + protected function blockAccess(AccountInterface $account) { + if ($account->hasPermission('access shortcuts')) { + return TRUE; + } } }