class CronSendMail in Mailgun 8
Sending mails on CRON run.
Plugin annotation
@QueueWorker(
id = "mailgun_send_mail",
title = @Translation("Mailgun Cron Worker"),
cron = {"time" = 10}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
- class \Drupal\mailgun\Plugin\QueueWorker\SendMailBase implements ContainerFactoryPluginInterface
- class \Drupal\mailgun\Plugin\QueueWorker\CronSendMail
- class \Drupal\mailgun\Plugin\QueueWorker\SendMailBase implements ContainerFactoryPluginInterface
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
Expanded class hierarchy of CronSendMail
File
- src/
Plugin/ QueueWorker/ CronSendMail.php, line 14
Namespace
Drupal\mailgun\Plugin\QueueWorkerView source
class CronSendMail extends SendMailBase {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
SendMailBase:: |
protected | property | Mailgun Logger instance. | |
SendMailBase:: |
protected | property | Mailgun config. | |
SendMailBase:: |
protected | property | Mailgun mail handler. | |
SendMailBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
SendMailBase:: |
public | function |
Works on a single queue item. Overrides QueueWorkerInterface:: |
|
SendMailBase:: |
public | function |
SendMailBase constructor. Overrides PluginBase:: |