public SwitchShortcutSet::checkAccess(UserInterface $user = NULL)
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.
File
- core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 223
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); }
Please login to continue.