You are here

QueueGarbageCollectionInterface.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php

Namespace

Drupal\Core\Queue

File

core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php
View source
<?php

namespace Drupal\Core\Queue;


/**
 * If the Drupal 'queue' service implements this interface, the
 * garbageCollection() method will be called during cron.
 *
 * @see system_cron()
 */
interface QueueGarbageCollectionInterface {

  /**
   * Cleans queues of garbage.
   */
  public function garbageCollection();

}

Interfaces

Namesort descending Description
QueueGarbageCollectionInterface If the Drupal 'queue' service implements this interface, the garbageCollection() method will be called during cron.