Updater::findInfoFile

public static Updater::findInfoFile($directory) Determines what the most important (or only) info file is in a directory. Since there is no enforcement of which info file is the project's "main" info file, this will get one with the same name as the directory, or the first one it finds. Not ideal, but needs a larger solution. Parameters string $directory: Directory to search in. Return value string Path to the info file. File core/lib/Drupal/Core/Updater/Updater.php, line 109 Class Update

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

public static Updater::factory($source, $root) Returns an Updater of the appropriate type depending on the source. If a directory is provided which contains a module, will return a ModuleUpdater. Parameters string $source: Directory of a Drupal project. string $root: The root directory under which the project will be copied to if it's a new project. Usually this is the app root (the directory in which the Drupal site is installed). Return value \Drupal\Core\Updater\Updater A new Drupal\Core\U

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;

Updater::getBackupDir

public Updater::getBackupDir() Returns the full path to a directory where backups should be written. File core/lib/Drupal/Core/Updater/Updater.php, line 375 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public function getBackupDir() { return \Drupal::service('stream_wrapper_manager')->getViaScheme('temporary')->getDirectoryPath(); }

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

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::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::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();