You are here

public function WebformSubmissionAccessControlHandler::__construct in Webform 8.5

WebformSubmissionAccessControlHandler constructor.

Parameters

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

\Drupal\webform\WebformAccessRulesManagerInterface $access_rules_manager: Webform access rules manager service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

Overrides EntityAccessControlHandler::__construct

File

src/WebformSubmissionAccessControlHandler.php, line 45

Class

WebformSubmissionAccessControlHandler
Defines the access control handler for the webform submission entity type.

Namespace

Drupal\webform

Code

public function __construct(EntityTypeInterface $entity_type, WebformAccessRulesManagerInterface $access_rules_manager, RequestStack $request_stack) {
  parent::__construct($entity_type);
  $this->accessRulesManager = $access_rules_manager;
  $this->request = $request_stack
    ->getCurrentRequest();
}