function InstantQueueRunner::registerQueue

File

core/lib/Drupal/Core/Queue/InstantQueueRunner.php, line 36

Class

InstantQueueRunner
Provides an instant queue runner that processes items in kernel.destruct.

Namespace

Drupal\Core\Queue

Code

public function registerQueue(string $queue_name) : void {
  $this->queues[$queue_name] = ($this->queues[$queue_name] ?? 0) + 1;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.