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

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

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;

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