You are here

public function ShortcutSetStorageInterface::assignUser in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::assignUser()
  2. 10 core/modules/shortcut/src/ShortcutSetStorageInterface.php \Drupal\shortcut\ShortcutSetStorageInterface::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.

1 method overrides ShortcutSetStorageInterface::assignUser()
ShortcutSetStorage::assignUser in core/modules/shortcut/src/ShortcutSetStorage.php
Assigns a user to a particular shortcut set.

File

core/modules/shortcut/src/ShortcutSetStorageInterface.php, line 21

Class

ShortcutSetStorageInterface
Defines an interface for shortcut_set entity storage classes.

Namespace

Drupal\shortcut

Code

public function assignUser(ShortcutSetInterface $shortcut_set, $account);