You are here

public function UpdateProcessor::claimQueueItem in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::claimQueueItem()

Claims an item in the update fetch queue for processing.

Return value

bool|\stdClass On success we return an item object. If the queue is unable to claim an item it returns false.

Overrides UpdateProcessorInterface::claimQueueItem

See also

\Drupal\Core\Queue\QueueInterface::claimItem()

File

core/modules/update/src/UpdateProcessor.php, line 262
Contains \Drupal\update\UpdateProcessor.

Class

UpdateProcessor
Process project update information.

Namespace

Drupal\update

Code

public function claimQueueItem() {
  return $this->fetchQueue
    ->claimItem();
}