Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Queue / QueueGarbageCollectionInterface.php
diff --git a/web/core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php b/web/core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php
new file mode 100644 (file)
index 0000000..281627b
--- /dev/null
@@ -0,0 +1,18 @@
+<?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();
+
+}