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.
doc_Drupal
2016-10-29 09:51:10
Comments
Leave a Comment

Please login to continue.