public function WebformExceptionHtmlSubscriber::__construct in Webform 6.x
Same name and namespace in other branches
- 8.5 src/EventSubscriber/WebformExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::__construct()
Constructs a WebformExceptionHtmlSubscriber object.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.
\Psr\Log\LoggerInterface $logger: The logger service.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.
\Symfony\Component\Routing\Matcher\UrlMatcherInterface $access_unaware_router: A router implementation which does not check access.
\Drupal\Core\Session\AccountInterface $account: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.
Overrides DefaultExceptionHtmlSubscriber::__construct
File
- src/
EventSubscriber/ WebformExceptionHtmlSubscriber.php, line 92
Class
- WebformExceptionHtmlSubscriber
- Event subscriber to redirect to login form when webform settings instruct to.
Namespace
Drupal\webform\EventSubscriberCode
public function __construct(HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router, AccountInterface $account, ConfigFactoryInterface $config_factory, RendererInterface $renderer, MessengerInterface $messenger, WebformTokenManagerInterface $token_manager) {
parent::__construct($http_kernel, $logger, $redirect_destination, $access_unaware_router);
$this->account = $account;
$this->configFactory = $config_factory;
$this->renderer = $renderer;
$this->messenger = $messenger;
$this->tokenManager = $token_manager;
}