function 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\shortcut

Code

public function getDisplayedToUser(AccountInterface $account) : ShortcutSetInterface;

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