You are here

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

Unassigns a user from any shortcut set they may have been assigned to.

The user will go back to using whatever default set applies.

Parameters

$account: A user account that will be removed from the shortcut set assignment.

Return value

bool TRUE if the user was previously assigned to a shortcut set and has been successfully removed from it. FALSE if the user was already not assigned to any set.

Overrides ShortcutSetStorageInterface::unassignUser

File

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

Class

ShortcutSetStorageDecorator
Class ShortcutSetStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

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