public function YamlFormMessageManager::__construct in YAML Form 8
Constructs a YamlFormMessageManager object.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\yamlform\YamlFormRequestInterface $request_handler: The form request handler.
\Drupal\yamlform\YamlFormTokenManagerInterface $token_manager: The token manager.
File
- src/
YamlFormMessageManager.php, line 107
Class
- YamlFormMessageManager
- Defines the form message (and login) manager.
Namespace
Drupal\yamlformCode
public function __construct(AccountInterface $current_user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, YamlFormRequestInterface $request_handler, YamlFormTokenManagerInterface $token_manager) {
$this->currentUser = $current_user;
$this->configFactory = $config_factory;
$this->entityStorage = $entity_type_manager
->getStorage('yamlform_submission');
$this->logger = $logger;
$this->requestHandler = $request_handler;
$this->tokenManager = $token_manager;
}