Defines an interface for a class which can update a Drupal project.
An Updater currently serves the following purposes:
Name | Modifiers | Type | Description |
---|---|---|---|
UpdaterInterface::canUpdateDirectory | public static | function | Determines if the Updater can handle the project provided in $directory. |
UpdaterInterface::getInstallDirectory | public | function | Returns the path to the default install location for the current project. |
UpdaterInterface::getProjectName | public static | function | Returns the system name of the project. |
UpdaterInterface::getRootDirectoryRelativePath | public static | function | Returns the name of the root directory under which projects will be copied. |
UpdaterInterface::isInstalled | public | function | Checks if the project is installed. |
UpdaterInterface::postInstall | public | function | Actions to run after an install has occurred. |
UpdaterInterface::postUpdate | public | function | Actions to run after an update has occurred. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Updater!UpdaterInterface.php/interface/UpdaterInterface/8.1.x