diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Form/SwitchShortcutSet.php b/core/modules/shortcut/lib/Drupal/shortcut/Form/SwitchShortcutSet.php index ee0836b..507a1a1 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Form/SwitchShortcutSet.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Form/SwitchShortcutSet.php @@ -224,13 +224,10 @@ public function submitForm(array &$form, array &$form_state) { /** * Checks access for the shortcut set switch form. * - * @param \Drupal\Core\Session\AccountInterface $account - * The user whose shortcut sets are being switched. - * * @return mixed * AccessInterface::ALLOW, AccessInterface::DENY, or AccessInterface::KILL. */ - public function checkAccess(AccountInterface $account) { + public function checkAccess() { $account = $this->currentUser(); if ($account->hasPermission('administer shortcuts')) { // Administrators can switch anyone's shortcut set.