You are here

public function ShortcutSetStorageDecorator::getDefaultSet in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::getDefaultSet()
  2. 8 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::getDefaultSet()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::getDefaultSet()

Gets the default shortcut set 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.

Overrides ShortcutSetStorageInterface::getDefaultSet

File

webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php, line 52

Class

ShortcutSetStorageDecorator
Class ShortcutSetStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function getDefaultSet(AccountInterface $account) {
  return $this
    ->getOriginalObject()
    ->getDefaultSet($account);
}