You are here

protected function SendMailQueueWorker::waitBetweenSending in Queue Mail 8

Wait between items processing.

Wait if "Wait time per item" configuration is enabled.

1 call to SendMailQueueWorker::waitBetweenSending()
SendMailQueueWorker::processItem in src/Plugin/QueueWorker/SendMailQueueWorker.php
Works on a single queue item.

File

src/Plugin/QueueWorker/SendMailQueueWorker.php, line 258

Class

SendMailQueueWorker
Sends emails form queue.

Namespace

Drupal\queue_mail\Plugin\QueueWorker

Code

protected function waitBetweenSending() {
  if ($wait_time = $this->config
    ->get('queue_mail_queue_wait_time')) {
    sleep($wait_time);
  }
}