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

protected static Updater::getExtensionInfo($directory) Get Extension information from directory. Parameters string $directory: Directory to search in. Return value array Extension info. Throws \Drupal\Core\Updater\UpdaterException If the info parser does not provide any info. File core/lib/Drupal/Core/Updater/Updater.php, line 137 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code protected static function getExtensionInfo($directory

Updater::getInstallArgs

protected Updater::getInstallArgs($overrides = array()) Stores the default parameters for the Updater. Parameters array $overrides: An array of overrides for the default parameters. Return value array An array of configuration parameters for an update or install operation. File core/lib/Drupal/Core/Updater/Updater.php, line 191 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code protected function getInstallArgs($overrides = array()) {

Updater::getProjectName

public static Updater::getProjectName($directory) Gets the name of the project directory (basename). @todo It would be nice, if projects contained an info file which could provide their canonical name. Parameters string $directory: Return value string The name of the project. File core/lib/Drupal/Core/Updater/Updater.php, line 158 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public static function getProjectName($directory) {

Updater::getProjectTitle

public static Updater::getProjectTitle($directory) Returns the project name from a Drupal info file. Parameters string $directory: Directory to search for the info file. Return value string The title of the project. Throws \Drupal\Core\Updater\UpdaterException File core/lib/Drupal/Core/Updater/Updater.php, line 173 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public static function getProjectTitle($directory) { $info_file = s

Updater::getUpdaterFromDirectory

public static Updater::getUpdaterFromDirectory($directory) Determines which Updater class can operate on the given directory. Parameters string $directory: Extracted Drupal project. Return value string The class name which can work with this project type. Throws \Drupal\Core\Updater\UpdaterException File core/lib/Drupal/Core/Updater/Updater.php, line 84 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public static function getUpda

Updater::install

public Updater::install(&$filetransfer, $overrides = array()) Installs a Drupal project, returns a list of next actions. Parameters \Drupal\Core\FileTransfer\FileTransfer $filetransfer: Object that is a child of FileTransfer. array $overrides: An array of settings to override defaults; see self::getInstallArgs(). Return value array An array of links which the user may need to complete the install. Throws \Drupal\Core\Updater\UpdaterFileTransferException File core/lib/Drupal/Core/Updater/

Updater::makeBackup

public Updater::makeBackup(FileTransfer $filetransfer, $from, $to) Performs a backup. @todo Not implemented: https://www.drupal.org/node/2474355 Parameters \Drupal\Core\FileTransfer\FileTransfer $filetransfer: Object which is a child of FileTransfer. string $from: The file path to copy from. string $to: The file path to copy to. File core/lib/Drupal/Core/Updater/Updater.php, line 369 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code p