You are here

public function EntityQueue::setHandler in Entityqueue 8

Sets the EntityQueueHandler.

Parameters

string $handler_id: The handler name.

Return value

$this

Overrides EntityQueueInterface::setHandler

File

src/Entity/EntityQueue.php, line 185

Class

EntityQueue
Defines the EntityQueue entity class.

Namespace

Drupal\entityqueue\Entity

Code

public function setHandler($handler_id) {
  $this->handler = $handler_id;
  $this
    ->getPluginCollection()
    ->addInstanceID($handler_id, []);
  return $this;
}