You are here

public function Queue::setProcessor in Advanced Queue 8

Sets the queue processor.

Parameters

string $processor: The queue processor, one of the PROCESSOR_ constants.

Return value

$this

Overrides QueueInterface::setProcessor

File

src/Entity/Queue.php, line 183

Class

Queue
Defines the queue entity class.

Namespace

Drupal\advancedqueue\Entity

Code

public function setProcessor($processor) {
  $this->processor = $processor;
  return $this;
}