You are here

public function MandrillQueueProcessor::__construct in Mandrill 8

Constructor.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/MandrillQueueProcessor.php, line 21

Class

MandrillQueueProcessor
Sends queued mail messages.

Namespace

Drupal\mandrill\Plugin\QueueWorker

Code

public function __construct() {
  $config = \Drupal::service('config.factory')
    ->get('mandrill.settings');
  $this->cron['time'] = $config
    ->get('mandrill_queue_worker_timeout', 60);
}