QueueGarbageCollectionInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php
  2. 8.9.x core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php
  3. 10 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;


/**
 * Queue garbage collection interface.
 *
 * 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

Title Deprecated Summary
QueueGarbageCollectionInterface Queue garbage collection interface.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.