interface QueueGarbageCollectionInterface

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

1 file declares its use of QueueGarbageCollectionInterface
system.module in core/modules/system/system.module
Configuration system that lets administrators modify the workings of the site.

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

Title Sort descending Modifiers Object type Summary Overrides
QueueGarbageCollectionInterface::garbageCollection public function Cleans queues of garbage. 1

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