public function WebformScheduledEmailManager::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_scheduled_email/src/WebformScheduledEmailManager.php \Drupal\webform_scheduled_email\WebformScheduledEmailManager::__construct()
Constructs a WebformScheduledEmailManager object.
Parameters
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.
File
- modules/
webform_scheduled_email/ src/ WebformScheduledEmailManager.php, line 101
Class
- WebformScheduledEmailManager
- Defines the webform scheduled email manager.
Namespace
Drupal\webform_scheduled_emailCode
public function __construct(TimeInterface $time, Connection $database, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, EntityTypeManagerInterface $entity_type_manager, WebformTokenManagerInterface $token_manager) {
$this->time = $time;
$this->database = $database;
$this->languageManager = $language_manager;
$this->configFactory = $config_factory;
$this->loggerFactory = $logger_factory;
$this->webformStorage = $entity_type_manager
->getStorage('webform');
$this->submissionStorage = $entity_type_manager
->getStorage('webform_submission');
$this->tokenManager = $token_manager;
}