X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentityqueue%2Fsrc%2FEntity%2FEntityQueue.php;h=8455bac7df16de6f3a8b7c5d4d2e8e6047ab8c50;hp=706bd14c0fb58dcc3251399eff80ab23094bcee9;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/entityqueue/src/Entity/EntityQueue.php b/web/modules/contrib/entityqueue/src/Entity/EntityQueue.php index 706bd14c0..8455bac7d 100644 --- a/web/modules/contrib/entityqueue/src/Entity/EntityQueue.php +++ b/web/modules/contrib/entityqueue/src/Entity/EntityQueue.php @@ -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} */