public function WorkbenchEmailProcessor::__construct in Workbench Email 8
Same name in this branch
- 8 src/WorkbenchEmailProcessor.php \Drupal\workbench_email\WorkbenchEmailProcessor::__construct()
- 8 src/Plugin/QueueWorker/WorkbenchEmailProcessor.php \Drupal\workbench_email\Plugin\QueueWorker\WorkbenchEmailProcessor::__construct()
Same name and namespace in other branches
- 2.x src/WorkbenchEmailProcessor.php \Drupal\workbench_email\WorkbenchEmailProcessor::__construct()
Constructs a WorkbencEmailProcessor object.
Parameters
\Drupal\Core\Queue\QueueFactory $queue_factory: The queue service.
\Drupal\Core\Queue\QueueWorkerManagerInterface $queue_manager: The queue plugin manager.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Logger factory service.
File
- src/
WorkbenchEmailProcessor.php, line 54
Class
- WorkbenchEmailProcessor
- Defines a class for processing a queue for a given entity ID.
Namespace
Drupal\workbench_emailCode
public function __construct(QueueFactory $queue_factory, QueueWorkerManagerInterface $queue_manager, LoggerChannelFactoryInterface $logger_factory) {
$this->queueFactory = $queue_factory;
$this->queueManager = $queue_manager;
$this->logger = $logger_factory
->get('workbench_email');
}