You are here

public function SwitchShortcutSet::checkAccess in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()
  2. 9 core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()

Checks access for the shortcut set switch form.

Parameters

\Drupal\user\UserInterface $user: (optional) The owner of the shortcut set.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

1 string reference to 'SwitchShortcutSet::checkAccess'
shortcut.routing.yml in core/modules/shortcut/shortcut.routing.yml
core/modules/shortcut/shortcut.routing.yml

File

core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 226

Class

SwitchShortcutSet
Builds the shortcut set switch form.

Namespace

Drupal\shortcut\Form

Code

public function checkAccess(UserInterface $user = NULL) {
  return shortcut_set_switch_access($user);
}