function ShortcutSetStorageInterface::unassignUser
Same name in other branches
- 9 core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::unassignUser()
- 10 core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::unassignUser()
- 11.x core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::unassignUser()
Unassigns a user from any shortcut set they may have been assigned to.
The user will go back to using whatever default set applies.
Parameters
$account: A user account that will be removed from the shortcut set assignment.
Return value
bool TRUE if the user was previously assigned to a shortcut set and has been successfully removed from it. FALSE if the user was already not assigned to any set.
1 method overrides ShortcutSetStorageInterface::unassignUser()
- ShortcutSetStorage::unassignUser in core/
modules/ shortcut/ src/ ShortcutSetStorage.php - Unassigns a user from any shortcut set they may have been assigned to.
File
-
core/
modules/ shortcut/ src/ ShortcutSetStorageInterface.php, line 36
Class
- ShortcutSetStorageInterface
- Defines an interface for shortcut_set entity storage classes.
Namespace
Drupal\shortcutCode
public function unassignUser($account);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.