Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php \Drupal\Core\Queue\QueueGarbageCollectionInterface
  2. 9 core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php \Drupal\Core\Queue\QueueGarbageCollectionInterface

Queue garbage collection interface.

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

Hierarchy

Expanded class hierarchy of QueueGarbageCollectionInterface

All classes that implement QueueGarbageCollectionInterface

See also

system_cron()

File

core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php, line 13

Namespace

Drupal\Core\Queue
View source
interface QueueGarbageCollectionInterface {

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

}

Members