You are here

public function SendGridQueue::__construct in SendGrid Integration 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/QueueWorker/SendGridQueue.php \Drupal\sendgrid_integration\Plugin\QueueWorker\SendGridQueue::__construct()

SendgridQueue constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Mail\MailManagerInterface $mailManager: THe mail manager service.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/SendGridQueue.php, line 40

Class

SendGridQueue
Sendgrid resend queue worker.

Namespace

Drupal\sendgrid_integration\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MailManagerInterface $mailManager) {
  $this->mailManager = $mailManager;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}