UpdateProcessorInterface::claimQueueItem

public UpdateProcessorInterface::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. See also \Drupal\Core\Queue\QueueInterface::claimItem() File core/modules/update/src/UpdateProcessorInterface.php, line 20 Class UpdateProcessorInterface Processor of project update information. Namespace Drupal\update Code public function claimQueueItem();

UpdateProcessorInterface::createFetchTask

public UpdateProcessorInterface::createFetchTask($project) Adds a task to the queue for fetching release history data for a project. We only create a new fetch task if there's no task already in the queue for this particular project (based on 'update_fetch_task' key-value collection). Parameters array $project: Associative array of information about a project as created by \Drupal\Update\UpdateManager::getProjects(), including keys such as 'name' (short name), and the 'info' array with data fr

UpdateProcessorInterface

Processor of project update information. Hierarchy interface \Drupal\update\UpdateProcessorInterface File core/modules/update/src/UpdateProcessorInterface.php, line 9 Namespace Drupal\update Members Name Modifiers Type Description UpdateProcessorInterface::claimQueueItem public function Claims an item in the update fetch queue for processing. UpdateProcessorInterface::createFetchTask public function Adds a task to the queue for fetching release history data for a

UpdateProcessor::__construct

public UpdateProcessor::__construct(ConfigFactoryInterface $config_factory, QueueFactory $queue_factory, UpdateFetcherInterface $update_fetcher, StateInterface $state_store, PrivateKey $private_key, KeyValueFactoryInterface $key_value_factory, KeyValueFactoryInterface $key_value_expirable_factory) Constructs a UpdateProcessor. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory \Drupal\upda

UpdateProcessor::parseXml

protected UpdateProcessor::parseXml($raw_xml) Parses the XML of the Drupal release history info files. Parameters string $raw_xml: A raw XML string of available release data for a given project. Return value array Array of parsed data about releases for a given project, or NULL if there was an error parsing the string. File core/modules/update/src/UpdateProcessor.php, line 208 Class UpdateProcessor Process project update information. Namespace Drupal\update Code protected function pa

UpdateProcessor::processFetchTask

public UpdateProcessor::processFetchTask($project) Processes a task to fetch available update data for a single project. Once the release history XML data is downloaded, it is parsed and saved in an entry just for that project. Parameters array $project: Associative array of information about the project to fetch data for. Return value bool TRUE if we fetched parsable XML, otherwise FALSE. Overrides UpdateProcessorInterface::processFetchTask File core/modules/update/src/UpdateProcessor.php, l

UpdateProcessor::numberOfQueueItems

public UpdateProcessor::numberOfQueueItems() Retrieves the number of items in the update fetch queue. Return value int An integer estimate of the number of items in the queue. Overrides UpdateProcessorInterface::numberOfQueueItems See also \Drupal\Core\Queue\QueueInterface::numberOfItems() File core/modules/update/src/UpdateProcessor.php, line 251 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public function numberOfQueueItems() { return $th

UpdateProcessor::claimQueueItem

public 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 258 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public functio

UpdateProcessor::deleteQueueItem

public UpdateProcessor::deleteQueueItem($item) Deletes a finished item from the update fetch queue. Parameters \stdClass $item: The item returned by \Drupal\Core\Queue\QueueInterface::claimItem(). Overrides UpdateProcessorInterface::deleteQueueItem See also \Drupal\Core\Queue\QueueInterface::deleteItem() File core/modules/update/src/UpdateProcessor.php, line 265 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public function deleteQueueItem($ite

UpdateProcessor::createFetchTask

public UpdateProcessor::createFetchTask($project) Adds a task to the queue for fetching release history data for a project. We only create a new fetch task if there's no task already in the queue for this particular project (based on 'update_fetch_task' key-value collection). Parameters array $project: Associative array of information about a project as created by \Drupal\Update\UpdateManager::getProjects(), including keys such as 'name' (short name), and the 'info' array with data from a .inf