You are here

public function EntityQueue::setHandlerPlugin in Entityqueue 8

Sets the EntityQueueHandler plugin object.

Parameters

\Drupal\entityqueue\EntityQueueHandlerInterface $handler: A queue handler plugin.

Return value

$this

Overrides EntityQueueInterface::setHandlerPlugin

File

src/Entity/EntityQueue.php, line 202

Class

EntityQueue
Defines the EntityQueue entity class.

Namespace

Drupal\entityqueue\Entity

Code

public function setHandlerPlugin($handler) {
  $this
    ->getPluginCollection()
    ->set($handler
    ->getPluginId(), $handler);
  return $this;
}