You are here

public function QueryAccessHandlerBase::__construct in Entity API 8

Constructs a new QueryAccessHandlerBase object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The entity type bundle info.

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

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

File

src/QueryAccess/QueryAccessHandlerBase.php, line 62

Class

QueryAccessHandlerBase
Provides common logic for query access handlers.

Namespace

Drupal\entity\QueryAccess

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeBundleInfoInterface $bundle_info, EventDispatcherInterface $event_dispatcher, AccountInterface $current_user) {
  $this->entityType = $entity_type;
  $this->bundleInfo = $bundle_info;
  $this->eventDispatcher = $event_dispatcher;
  $this->currentUser = $current_user;
}