You are here

public function FlagListsService::__construct in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlagListsService.php \Drupal\flag_lists\FlagListsService::__construct()

Constructor.

Parameters

Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query factory.

Drupal\Core\Session\AccountInterface $current_user: The current user.

Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.

File

src/FlagListsService.php, line 50

Class

FlagListsService
Class FlagForList service.

Namespace

Drupal\flag_lists

Code

public function __construct(QueryFactory $entity_query, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager) {
  $this->entityQueryManager = $entity_query;
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
}