public function FlagService::__construct in Flag 8.4
Constructor.
Parameters
QueryFactory $entity_query: The entity query factory.
AccountInterface $current_user: The current user.
EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Drupal\Core\Session\SessionManagerInterface $session_manager: The session manager.
File
- src/
FlagService.php, line 50
Class
- FlagService
- Flag service.
Namespace
Drupal\flagCode
public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, SessionManagerInterface $session_manager) {
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
$this->sessionManager = $session_manager;
}