You are here

public function ShortcutSetStorageDecorator::assignUser 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::assignUser()
  2. 8 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::assignUser()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::assignUser()

Assigns a user to a particular shortcut set.

Parameters

\Drupal\shortcut\ShortcutSetInterface $shortcut_set: An object representing the shortcut set.

$account: A user account that will be assigned to use the set.

Overrides ShortcutSetStorageInterface::assignUser

File

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

Class

ShortcutSetStorageDecorator
Class ShortcutSetStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function assignUser(ShortcutSetInterface $shortcut_set, $account) {
  $this
    ->getOriginalObject()
    ->assignUser($shortcut_set, $account);
}