You are here

public function Days::__construct in Message 8

Days constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Entity\Query\QueryInterface $message_query: The entity query service.

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

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to determine the current time.

Overrides MessagePurgeBase::__construct

File

src/Plugin/MessagePurge/Days.php, line 48

Class

Days
Delete messages older than certain days.

Namespace

Drupal\message\Plugin\MessagePurge

Code

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