public function WorkbenchAccessTokens::__construct in Workbench Access 8
Constructs a WorkbenchAccessTokens object.
'@token', '@entity_type.manager', '@workbench_access.user_section_storage', '@module_handler'
Parameters
\Drupal\Core\Utility\Token $token_service: The core token service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The core module handler.
\Drupal\workbench_access\UserSectionStorageInterface $user_section_storage: The workbench access user section storage service.
File
- src/
WorkbenchAccessTokens.php, line 67
Class
- WorkbenchAccessTokens
- Token handler for Workbench Access.
Namespace
Drupal\workbench_accessCode
public function __construct(Token $token_service, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, UserSectionStorageInterface $user_section_storage) {
$this->tokenService = $token_service;
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
$this->userSectionStorage = $user_section_storage;
}