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

public UpdateProcessorInterface::fetchData() Attempts to drain the queue of tasks for release history data to fetch. File core/modules/update/src/UpdateProcessorInterface.php, line 25 Class UpdateProcessorInterface Processor of project update information. Namespace Drupal\update Code public function fetchData();

UpdateProcessorInterface::numberOfQueueItems

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

UpdateProcessorInterface::processFetchTask

public UpdateProcessorInterface::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. File core/modules/update/src/UpdateProcessorInterface.php, line 60 Class UpdateProcessorInt

Updater

Defines the base class for Updaters used in Drupal. Hierarchy class \Drupal\Core\Updater\Updater File core/lib/Drupal/Core/Updater/Updater.php, line 12 Namespace Drupal\Core\Updater Members Name Modifiers Type Description Updater::$root protected property The root directory under which new projects will be copied. Updater::$source public property Directory to install from. Updater::factory public static function Returns an Updater of the appropriate type

Updater::$root

The root directory under which new projects will be copied. Type: string File core/lib/Drupal/Core/Updater/Updater.php, line 26 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code protected $root;

Updater::$source

Directory to install from. Type: string File core/lib/Drupal/Core/Updater/Updater.php, line 19 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public $source;