You are here

public function MessagePurgeInterface::fetch in Message 8

Fetch the messages that need to be purged for a given template.

Parameters

\Drupal\message\MessageTemplateInterface $template: The message template to fetch messages for.

Return value

array An array of \Drupal\message\MessageInterface entity IDs.

2 methods override MessagePurgeInterface::fetch()
Days::fetch in src/Plugin/MessagePurge/Days.php
Fetch the messages that need to be purged for a given template.
Quota::fetch in src/Plugin/MessagePurge/Quota.php
Fetch the messages that need to be purged for a given template.

File

src/MessagePurgeInterface.php, line 27

Class

MessagePurgeInterface
Interface for MessagePurge plugins.

Namespace

Drupal\message

Code

public function fetch(MessageTemplateInterface $template);