class Digest in Message Digest 8
Defines a derived message digest plugin.
Plugin annotation
@Notifier(
id = "message_digest",
deriver = "\Drupal\message_digest\Plugin\Deriver\DigestDeriver",
viewModes = {
"mail_subject",
"mail_body"
}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\message_notify\Plugin\Notifier\MessageNotifierBase implements MessageNotifierInterface
- class \Drupal\message_digest\Plugin\Notifier\DigestBase implements ContainerFactoryPluginInterface, DigestInterface
- class \Drupal\message_digest\Plugin\Notifier\Digest
- class \Drupal\message_digest\Plugin\Notifier\DigestBase implements ContainerFactoryPluginInterface, DigestInterface
- class \Drupal\message_notify\Plugin\Notifier\MessageNotifierBase implements MessageNotifierInterface
Expanded class hierarchy of Digest
1 file declares its use of Digest
- DigestTest.php in tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php
File
- src/
Plugin/ Notifier/ Digest.php, line 17
Namespace
Drupal\message_digest\Plugin\NotifierView source
class Digest extends DigestBase {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DigestBase:: |
protected | property | Database connection. | |
DigestBase:: |
protected | property | The digest interval. | |
DigestBase:: |
protected | property | The state service for tracking last sent time. | |
DigestBase:: |
protected | property | The time service. | |
DigestBase:: |
public | function |
Aggregate all of the messages for this digest. Overrides DigestInterface:: |
|
DigestBase:: |
public static | function |
Creates an instance of the plugin. Overrides MessageNotifierBase:: |
|
DigestBase:: |
public | function |
Deliver a message via the required transport method. Overrides MessageNotifierInterface:: |
|
DigestBase:: |
public | function |
Gets the end time for which to digest messages prior to. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
The interval to compile digests for. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
Get a unique list of recipient user IDs for this digest. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
Mark the sent digest messages as sent in the message_digest DB table. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
Determine if it is time to process this digest or not. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
Sets the last sent time. Overrides DigestInterface:: |
|
DigestBase:: |
public | function |
Constructs the digest notifier plugins. Overrides MessageNotifierBase:: |
|
DigestBase:: |
public | function | Implements the magic __sleep() method. | |
DigestBase:: |
public | function | Implements the magic __wakeup() method. | |
MessageNotifierBase:: |
protected | property | The entity type manager service. | |
MessageNotifierBase:: |
protected | property | The logger channel. | |
MessageNotifierBase:: |
protected | property | The message entity. | |
MessageNotifierBase:: |
protected | property | The rendering service. | |
MessageNotifierBase:: |
public | function |
Determine if user can access notifier. Overrides MessageNotifierInterface:: |
|
MessageNotifierBase:: |
public | function |
Save the rendered messages if needed.
Invoke watchdog error on failure. Overrides MessageNotifierInterface:: |
|
MessageNotifierBase:: |
public | function |
Entry point to send and process a message. Overrides MessageNotifierInterface:: |
|
MessageNotifierBase:: |
public | function |
Set the message object for the notifier. Overrides MessageNotifierInterface:: |
|
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. |