protected function DatabaseUpdate::executeDatabaseUpdate in Automatic Updates 8
Execute a single database update.
Parameters
callable $invoker: Callable update invoker.
array $args: The arguments to pass to the invoker.
1 call to DatabaseUpdate::executeDatabaseUpdate()
- DatabaseUpdate::executeDatabaseUpdates in src/
Command/ DatabaseUpdate.php - Execute all outstanding database updates.
File
- src/
Command/ DatabaseUpdate.php, line 94
Class
- DatabaseUpdate
- Database update command.
Namespace
Drupal\automatic_updates\CommandCode
protected function executeDatabaseUpdate(callable $invoker, array $args) {
\Drupal::logger('automatic_updates')
->notice('Database update running with arguments "@arguments"', [
'@arguments' => print_r($args, TRUE),
]);
$context = [
'sandbox' => [],
];
call_user_func_array($invoker, array_merge($args, [
&$context,
]));
\Drupal::logger('automatic_updates')
->notice('Database update finished with arguments "@arguments"', [
'@arguments' => print_r($args, TRUE),
]);
}