function SwitchShortcutSet::checkAccess
Same name in other branches
- 9 core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()
- 10 core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()
- 11.x 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\FormCode
public function checkAccess(UserInterface $user = NULL) {
return shortcut_set_switch_access($user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.