function ShortcutSetStorageInterface::getDisplayedToUser
Same name in other branches
- 11.x core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::getDisplayedToUser()
Gets the shortcut set to be displayed for a given user account.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account whose default shortcut set will be returned.
Return value
\Drupal\shortcut\ShortcutSetInterface An object representing the default shortcut set.
1 method overrides ShortcutSetStorageInterface::getDisplayedToUser()
- ShortcutSetStorage::getDisplayedToUser in core/
modules/ shortcut/ src/ ShortcutSetStorage.php - Gets the shortcut set to be displayed for a given user account.
File
-
core/
modules/ shortcut/ src/ ShortcutSetStorageInterface.php, line 66
Class
- ShortcutSetStorageInterface
- Defines an interface for shortcut_set entity storage classes.
Namespace
Drupal\shortcutCode
public function getDisplayedToUser(AccountInterface $account) : ShortcutSetInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.