interface 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

Expanded class hierarchy of UpdaterInterface

All classes that implement UpdaterInterface

File

drupal/core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 20
Definition of Drupal\Core\Updater\UpdaterInterface.

Namespace

Drupal\Core\Updater
View source

Members

Namesort descending Modifiers Type Description Overrides
UpdaterInterface::canUpdateDirectory public static function Determines if the Updater can handle the project provided in $directory. 2
UpdaterInterface::getInstallDirectory public function Returns the path to the default install location. 2
UpdaterInterface::getProjectName public static function Returns the system name of the project.
UpdaterInterface::isInstalled public function Checks if the project is installed. 2
UpdaterInterface::postInstall public function Actions to run after an install has occurred.
UpdaterInterface::postUpdate public function Actions to run after an update has occurred.