UpdateProcessorInterface::deleteQueueItem

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

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

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

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::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::__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::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

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::fetchData

public UpdateProcessor::fetchData() Attempts to drain the queue of tasks for release history data to fetch. Overrides UpdateProcessorInterface::fetchData File core/modules/update/src/UpdateProcessor.php, line 128 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public function fetchData() { $end = time() + $this->updateSettings->get('fetch.timeout'); while (time() < $end && ($item = $this->fetchQueue->claimItem())) {