class AmazonSesMailQueue in Amazon SES 2.0.x
Amazon SES mail queue worker.
Plugin annotation
@QueueWorker(
id = "amazon_ses_mail_queue",
title = @Translation("Amazon SES mail queue"),
cron = {"time" = 60}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
- class \Drupal\amazon_ses\Plugin\QueueWorker\AmazonSesMailQueue implements ContainerFactoryPluginInterface uses AmazonSesHandlerTrait
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
Expanded class hierarchy of AmazonSesMailQueue
File
- src/
Plugin/ QueueWorker/ AmazonSesMailQueue.php, line 19
Namespace
Drupal\amazon_ses\Plugin\QueueWorkerView source
class AmazonSesMailQueue extends QueueWorkerBase implements ContainerFactoryPluginInterface {
use AmazonSesHandlerTrait;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = new static($configuration, $plugin_id, $plugin_definition);
$instance
->setHandler($container
->get('amazon_ses.handler'));
return $instance;
}
/**
* {@inheritdoc}
*/
public function processItem($message) {
$this->handler
->send($message);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AmazonSesHandlerTrait:: |
protected | property | The Amazon SES handler service. | |
AmazonSesHandlerTrait:: |
protected | function | Set the handler object. | |
AmazonSesMailQueue:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
AmazonSesMailQueue:: |
public | function |
Works on a single queue item. Overrides QueueWorkerInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 98 |