class UpdateRegistry

Provides all and missing update implementations.

Note: This registry is specific to a type of updates, like 'post_update' as example.

It therefore scans for functions named like the type of updates, so it looks like MODULE_UPDATETYPE_NAME() with NAME being a machine name.

Hierarchy

File

core/lib/Drupal/Core/Update/UpdateRegistry.php, line 18

Namespace

Drupal\Core\Update

Members

Name Modifiers Type Description
UpdateRegistry::$enabledModules protected property
UpdateRegistry::$includeTests protected property Should we respect update functions in tests.
UpdateRegistry::$keyValue protected property The key value storage.
UpdateRegistry::$logFilename protected property The filename of the log file.
UpdateRegistry::$root protected property The app root.
UpdateRegistry::$sitePath protected property The site path.
UpdateRegistry::$updateType protected property The used update name.
UpdateRegistry::filterOutInvokedUpdatesByModule public function Filters out already executed update functions by module.
UpdateRegistry::getAvailableUpdateFunctions protected function Gets all available update functions.
UpdateRegistry::getModuleUpdateFunctions public function Returns all available updates for a given module.
UpdateRegistry::getPendingUpdateFunctions public function Find all update functions that haven't been executed.
UpdateRegistry::getPendingUpdateInformation public function Returns a list of all the pending updates.
UpdateRegistry::loadUpdateFile protected function Loads the {$this->updateType}.php file for a given extension.
UpdateRegistry::loadUpdateFiles protected function Loads all update files for a given list of extension.
UpdateRegistry::registerInvokedUpdates public function Registers that update fucntions got executed.
UpdateRegistry::scanExtensionsAndLoadUpdateFiles protected function Scans all module + profile extensions and load the update files.
UpdateRegistry::__construct public function Constructs a new UpdateRegistry.

© 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!Update!UpdateRegistry.php/class/UpdateRegistry/8.1.x