You are here

public function MessagePurgeBase::process in Message 8

Process the purgeable messages.

Normally this is a bulk delete operation.

Parameters

array $ids: The message IDs to be processed.

Return value

bool The result of the process.

Overrides MessagePurgeInterface::process

File

src/MessagePurgeBase.php, line 79

Class

MessagePurgeBase
Base implementation for MessagePurge plugins.

Namespace

Drupal\message

Code

public function process(array $ids) {
  if (!empty($ids)) {
    foreach (array_chunk($ids, MessagePurgeInterface::MESSAGE_DELETE_SIZE) as $queue_set) {
      $this->queue
        ->createItem($queue_set);
    }
  }
}