public function EmailConfirmationAccessControlHandler::__construct in Email confirmer 8
Creates a new EmailConfirmationAccessControlHandler.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides EntityAccessControlHandler::__construct
File
- src/
EmailConfirmationAccessControlHandler.php, line 46
Class
- EmailConfirmationAccessControlHandler
- Access controller for the email confirmation entity.
Namespace
Drupal\email_confirmerCode
public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
parent::__construct($entity_type);
$this->confirmerConfig = $config_factory
->get('email_confirmer.settings');
$this->requestStack = $request_stack;
}