public function DigestManager::__construct in Message Digest 8
Constructs the message digest manager service.
Parameters
\Drupal\Core\Database\Connection $connection: The active database connection.
\Drupal\message_notify\Plugin\Notifier\Manager $notifier_manager: The message notifier plugin manager service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\message_digest\DigestFormatterInterface $formatter: The digest formatter service.
\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager service.
\Drupal\Core\Queue\QueueFactory $queue: The queue factory service.
File
- src/
DigestManager.php, line 90
Class
- DigestManager
- Digest manager service.
Namespace
Drupal\message_digestCode
public function __construct(Connection $connection, Manager $notifier_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, DigestFormatterInterface $formatter, MailManagerInterface $mail_manager, QueueFactory $queue) {
$this->database = $connection;
$this->entityTypeManager = $entity_type_manager;
$this->formatter = $formatter;
$this->mailManager = $mail_manager;
$this->moduleHandler = $module_handler;
$this->notifierManager = $notifier_manager;
$this->queue = $queue
->get('message_digest');
}