SwitchShortcutSet::checkAccess

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);
}
doc_Drupal
2016-10-29 09:45:31
Comments
Leave a Comment

Please login to continue.