public function UpdateRegistry::filterOutInvokedUpdatesByModule
public UpdateRegistry::filterOutInvokedUpdatesByModule($module)
Filters out already executed update functions by module.
Parameters
string $module: The module name.
File
- core/lib/Drupal/Core/Update/UpdateRegistry.php, line 254
Class
- UpdateRegistry
- Provides all and missing update implementations.
Namespace
Drupal\Core\UpdateCode
public function filterOutInvokedUpdatesByModule($module) { $existing_update_functions = $this->keyValue->get('existing_updates', []); $remaining_update_functions = array_filter($existing_update_functions, function($function_name) use ($module) { return strpos($function_name, "{$module}_{$this->updateType}_") !== 0; }); $this->keyValue->set('existing_updates', array_values($remaining_update_functions)); }
© 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/function/UpdateRegistry::filterOutInvokedUpdatesByModule/8.1.x