public function MessagePurgeOrchestrator::__construct in Message 8
Constructs the purging service.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\message\MessagePurgePluginManager $purge_manager: The purge plugin manager.
File
- src/
MessagePurgeOrchestrator.php, line 44
Class
- MessagePurgeOrchestrator
- Purges messages from the system based on global and template configurations.
Namespace
Drupal\messageCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, MessagePurgePluginManager $purge_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->globalConfig = $config_factory
->get('message.settings');
$this->purgeManager = $purge_manager;
}