You are here

public function PrivateMessageAccessControlHandler::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Access/PrivateMessageAccessControlHandler.php \Drupal\private_message\Entity\Access\PrivateMessageAccessControlHandler::__construct()

Costructs a PrivateMessageThreadAccessControlHandler entity.

Parameters

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

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler service.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository service.

\Drupal\private_message\Service\PrivateMessageServiceInterface $privateMessageService: The private message service.

Overrides EntityAccessControlHandler::__construct

File

src/Entity/Access/PrivateMessageAccessControlHandler.php, line 40

Class

PrivateMessageAccessControlHandler
Access control handler for private message entities.

Namespace

Drupal\private_message\Entity\Access

Code

public function __construct(EntityTypeInterface $entity_type, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository, PrivateMessageServiceInterface $privateMessageService) {
  parent::__construct($entity_type, $context_handler, $context_repository);
  $this->privateMessageService = $privateMessageService;
}