W3cubDocs

/Drupal 8

public function QueueGarbageCollectionInterface::garbageCollection

public QueueGarbageCollectionInterface::garbageCollection()

Cleans queues of garbage.

File

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

Class

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

Namespace

Drupal\Core\Queue

Code

public function garbageCollection();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Queue!QueueGarbageCollectionInterface.php/function/QueueGarbageCollectionInterface::garbageCollection/8.1.x