protected function Updater::executeGlobalActions in Update helper 8
Same name and namespace in other branches
- 2.x src/Updater.php \Drupal\update_helper\Updater::executeGlobalActions()
Get array with defined global actions.
Global actions can be:
- install_modules: list of modules to install
- import_configs: list of configurations to import.
Parameters
array $global_actions: Array with list of global actions.
1 call to Updater::executeGlobalActions()
- Updater::executeUpdate in src/
Updater.php - Execute update of configuration from update definitions.
File
- src/
Updater.php, line 164
Class
- Updater
- Helper class to update configuration.
Namespace
Drupal\update_helperCode
protected function executeGlobalActions(array $global_actions) {
if (isset($global_actions[UpdateDefinitionInterface::GLOBAL_ACTION_INSTALL_MODULES])) {
$this
->installModules($global_actions[UpdateDefinitionInterface::GLOBAL_ACTION_INSTALL_MODULES]);
}
if (isset($global_actions[UpdateDefinitionInterface::GLOBAL_ACTION_IMPORT_CONFIGS])) {
$this
->importConfigs($global_actions[UpdateDefinitionInterface::GLOBAL_ACTION_IMPORT_CONFIGS]);
}
}