public function UserSectionStorage::__construct in Workbench Access 8
Constructs a new UserSectionStorage object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.
\Drupal\Core\Session\AccountInterface $currentUser: Current user.
\Drupal\workbench_access\RoleSectionStorageInterface $role_section_storage: Role section storage.
File
- src/
UserSectionStorage.php, line 53
Class
- UserSectionStorage
- Defines a class for storing and retrieving sections assigned to a user.
Namespace
Drupal\workbench_accessCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser, RoleSectionStorageInterface $role_section_storage) {
$this->currentUser = $currentUser;
$this->entityTypeManager = $entityTypeManager;
$this->roleSectionStorage = $role_section_storage;
}