You are here

public function WebformEntityAccessControlHandler::__construct in Webform 8.5

WebformEntityAccessControlHandler constructor.

Parameters

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

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

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

\Drupal\webform\Plugin\WebformSourceEntityManagerInterface $webform_source_entity_manager: Webform source entity plugin manager.

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

Overrides EntityAccessControlHandler::__construct

File

src/WebformEntityAccessControlHandler.php, line 66

Class

WebformEntityAccessControlHandler
Defines the access control handler for the webform entity type.

Namespace

Drupal\webform

Code

public function __construct(EntityTypeInterface $entity_type, RequestStack $request_stack, EntityTypeManagerInterface $entity_type_manager, WebformSourceEntityManagerInterface $webform_source_entity_manager, WebformAccessRulesManagerInterface $access_rules_manager) {
  parent::__construct($entity_type);
  $this->requestStack = $request_stack;
  $this->entityTypeManager = $entity_type_manager;
  $this->webformSourceEntityManager = $webform_source_entity_manager;
  $this->accessRulesManager = $access_rules_manager;
}