function SuspendQueueException::getDelay

Same name in other branches
  1. 10 core/lib/Drupal/Core/Queue/SuspendQueueException.php \Drupal\Core\Queue\SuspendQueueException::getDelay()

Get the desired delay interval for this item.

Return value

float|null If the time for when the queue will be ready to resume processing is known, pass an interval in seconds. Otherwise NULL if the time to resume processing the queue is not known.

File

core/lib/Drupal/Core/Queue/SuspendQueueException.php, line 51

Class

SuspendQueueException
Exception class to throw to indicate that a cron queue should be skipped.

Namespace

Drupal\Core\Queue

Code

public function getDelay() : ?float {
    return $this->delay;
}

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