You are here

public function MessagePurgeBase::__construct in Message 8

Constructs a MessagePurgeBase object.

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\Entity\Query\QueryInterface $message_query: The entity query object for message items.

\Drupal\Core\Queue\QueueInterface $queue: The message deletion queue.

Overrides PluginBase::__construct

1 call to MessagePurgeBase::__construct()
Days::__construct in src/Plugin/MessagePurge/Days.php
Days constructor.
1 method overrides MessagePurgeBase::__construct()
Days::__construct in src/Plugin/MessagePurge/Days.php
Days constructor.

File

src/MessagePurgeBase.php, line 55

Class

MessagePurgeBase
Base implementation for MessagePurge plugins.

Namespace

Drupal\message

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryInterface $message_query, QueueInterface $queue) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->messageQuery = $message_query;
  $this->queue = $queue;
  $this
    ->setConfiguration($configuration);
}