public function WebformMessageManager::__construct in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformMessageManager.php \Drupal\webform\WebformMessageManager::__construct()
Constructs a WebformMessageManager object.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\webform\WebformRequestInterface $request_handler: The webform request handler.
\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
WebformMessageManager.php, line 126
Class
- WebformMessageManager
- Defines the webform message (and login) manager.
Namespace
Drupal\webformCode
public function __construct(AccountInterface $current_user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, RendererInterface $renderer, MessengerInterface $messenger, WebformRequestInterface $request_handler, WebformTokenManagerInterface $token_manager) {
$this->currentUser = $current_user;
$this->configFactory = $config_factory;
$this->entityTypeManager = $entity_type_manager;
$this->logger = $logger;
$this->renderer = $renderer;
$this->messenger = $messenger;
$this->requestHandler = $request_handler;
$this->tokenManager = $token_manager;
}