public function ShortcutSetStorageDecorator::assignUser in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::assignUser()
- 8.2 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::assignUser()
- 4.x 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\ConfigCode
public function assignUser(ShortcutSetInterface $shortcut_set, $account) {
$this
->getOriginalObject()
->assignUser($shortcut_set, $account);
}