You are here

public function QueryAccessHandlerBase::__construct in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Access/QueryAccessHandlerBase.php \Drupal\group\Entity\Access\QueryAccessHandlerBase::__construct()

Constructs a new QueryAccessHandlerBase object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

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

\Drupal\group\Access\ChainGroupPermissionCalculatorInterface $permission_calculator: The group permission calculator.

File

src/Entity/Access/QueryAccessHandlerBase.php, line 61

Class

QueryAccessHandlerBase
Controls query access for the Group module's entities.

Namespace

Drupal\group\Entity\Access

Code

public function __construct(EntityTypeInterface $entity_type, EventDispatcherInterface $event_dispatcher, AccountInterface $current_user, ChainGroupPermissionCalculatorInterface $permission_calculator) {
  $this->entityType = $entity_type;
  $this->eventDispatcher = $event_dispatcher;
  $this->currentUser = $current_user;
  $this->groupPermissionCalculator = $permission_calculator;
}