public function UserSectionStorageInterface::removeUser in Workbench Access 8
Removes a set of sections to a user.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.
\Drupal\Core\Session\AccountInterface $account: User to remove from the section.
array $sections: An array of section ids to assign to this user.
Return value
\Drupal\Core\Session\AccountInterface The saved user entity.
1 method overrides UserSectionStorageInterface::removeUser()
- UserSectionStorage::removeUser in src/
UserSectionStorage.php - Removes a set of sections to a user.
File
- src/
UserSectionStorageInterface.php, line 41
Class
- UserSectionStorageInterface
- Defines an interface for storing and retrieving sections for a user.
Namespace
Drupal\workbench_accessCode
public function removeUser(AccessSchemeInterface $scheme, AccountInterface $account, array $sections = []);