function SwitchShortcutSet::checkAccess

Same name in other branches
  1. 9 core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()
  2. 8.9.x core/modules/shortcut/src/Form/SwitchShortcutSet.php \Drupal\shortcut\Form\SwitchShortcutSet::checkAccess()
  3. 10 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.