UpdaterInterface::isInstalled

public UpdaterInterface::isInstalled() Checks if the project is installed. Return value bool File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 22 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function isInstalled();

UpdaterInterface::getRootDirectoryRelativePath

public static UpdaterInterface::getRootDirectoryRelativePath() Returns the name of the root directory under which projects will be copied. Return value string A relative path to the root directory. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 46 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public static function getRootDirectoryRelativePath();

UpdaterInterface::getProjectName

public static UpdaterInterface::getProjectName($directory) Returns the system name of the project. Parameters string $directory: A directory containing a project. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 30 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public static function getProjectName($directory);

UpdaterInterface::getInstallDirectory

public UpdaterInterface::getInstallDirectory() Returns the path to the default install location for the current project. Return value string An absolute path to the default install location. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 38 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function getInstallDirectory();

UpdaterInterface::canUpdateDirectory

public static UpdaterInterface::canUpdateDirectory($directory) Determines if the Updater can handle the project provided in $directory. Parameters string $directory: Return value bool TRUE if the project is installed, FALSE if not. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 56 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public static function canUpdateDirectory($directory);

UpdaterInterface

Defines an interface for a class which can update a Drupal project. An Updater currently serves the following purposes: It can take a given directory, and determine if it can operate on it. It can move the contents of that directory into the appropriate place on the system using FileTransfer classes. It can return a list of "next steps" after an update or install. In the future, it will most likely perform some of those steps as well. Hierarchy interface \Drupal\Core\Updater\UpdaterInterface

UpdaterFileTransferException

Defines a child class of Drupal\Core\Updater\UpdaterException that indicates a Drupal\Core\FileTransfer\FileTransfer exception. We have to catch Drupal\Core\FileTransfer\FileTransfer exceptions and wrap those in t(), since Drupal\Core\FileTransfer\FileTransfer is so low-level that it doesn't use any Drupal APIs and none of the strings are translated. Hierarchy class \Drupal\Core\Updater\UpdaterException extends \Exceptionclass \Drupal\Core\Updater\UpdaterFileTransferException File core/lib/

UpdaterException

Defines a Exception class for the Drupal\Core\Updater\Updater class hierarchy. This is identical to the base Exception class, we just give it a more specific name so that call sites that want to tell the difference can specifically catch these exceptions and treat them differently. Hierarchy class \Drupal\Core\Updater\UpdaterException extends \Exception File core/lib/Drupal/Core/Updater/UpdaterException.php, line 13 Namespace Drupal\Core\Updater Members

UpdateRegistry::__construct

public UpdateRegistry::__construct($root, $site_path, array $enabled_modules, KeyValueStoreInterface $key_value, $include_tests = NULL) Constructs a new UpdateRegistry. Parameters string $root: The app root. string $site_path: The site path. string[] $enabled_modules: A list of enabled modules. \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value: The key value store. bool|null $include_tests: (optional) A flag whether to include tests in the scanning of modules. File core/lib/Drupal/C

UpdateRegistry::scanExtensionsAndLoadUpdateFiles

protected UpdateRegistry::scanExtensionsAndLoadUpdateFiles() Scans all module + profile extensions and load the update files. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 237 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected function scanExtensionsAndLoadUpdateFiles() { // Scan the module list. $extension_discovery = new ExtensionDiscovery($this->root, FALSE, [], $this->sitePath); $module_extension