function UpdateProcessor::claimQueueItem

Claims an item in the update fetch queue for processing.

Return value

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

Overrides UpdateProcessorInterface::claimQueueItem

File

core/modules/update/src/UpdateProcessor.php, line 284

Class

UpdateProcessor
Process project update information.

Namespace

Drupal\update

Code

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

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