Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entityqueue / src / EntitySubqueueInterface.php
index e4eaca90b249a2b0ae06b417254324e00444c1ea..2aebf98210cd886fef5c6bbe2b1ce64690373533 100644 (file)
@@ -4,6 +4,7 @@ namespace Drupal\entityqueue;
 
 use Drupal\Core\Entity\ContentEntityInterface;
 use Drupal\Core\Entity\EntityChangedInterface;
+use Drupal\Core\Entity\EntityInterface;
 use Drupal\user\EntityOwnerInterface;
 
 /**
@@ -29,6 +30,26 @@ interface EntitySubqueueInterface extends ContentEntityInterface, EntityChangedI
    */
   public function setQueue(EntityQueueInterface $queue);
 
+  /**
+   * Adds an entity to a subqueue
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   An entity object.
+   *
+   * @return $this
+   */
+  public function addItem(EntityInterface $entity);
+
+  /**
+   * Removes an entity from a subqueue
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   An entity object.
+   *
+   * @return $this
+   */
+  public function removeItem(EntityInterface $entity);
+
   /**
    * Gets the subqueue title.
    *