Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entityqueue / src / Entity / EntityQueue.php
index 706bd14c0fb58dcc3251399eff80ab23094bcee9..8455bac7df16de6f3a8b7c5d4d2e8e6047ab8c50 100644 (file)
@@ -22,7 +22,8 @@ use Drupal\entityqueue\EntityQueueInterface;
  *       "add" = "Drupal\entityqueue\Form\EntityQueueForm",
  *       "edit" = "Drupal\entityqueue\Form\EntityQueueForm",
  *       "delete" = "Drupal\Core\Entity\EntityDeleteForm"
- *     }
+ *     },
+ *     "access" = "Drupal\entityqueue\EntityQueueAccessControlHandler",
  *   },
  *   admin_permission = "administer entityqueue",
  *   config_prefix = "entity_queue",
@@ -174,9 +175,16 @@ class EntityQueue extends ConfigEntityBundleBase implements EntityQueueInterface
   /**
    * {@inheritdoc}
    */
-  public function setHandler($handler) {
-    $this->handler = $handler;
-    $this->getPluginCollection()->addInstanceID($handler, []);
+  public function getHandlerConfiguration() {
+    return $this->handler_configuration;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setHandler($handler_id) {
+    $this->handler = $handler_id;
+    $this->getPluginCollection()->addInstanceID($handler_id, []);
 
     return $this;
   }
@@ -188,6 +196,15 @@ class EntityQueue extends ConfigEntityBundleBase implements EntityQueueInterface
     return $this->getPluginCollection()->get($this->handler);
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function setHandlerPlugin($handler) {
+    $this->getPluginCollection()->set($handler->getPluginId(), $handler);
+
+    return $this;
+  }
+
   /**
    * {@inheritdoc}
    */