public static function BatchProcessor::begin in Automatic Updates 8.2
Calls the updater's begin() method.
Parameters
string[] $project_versions: The project versions to be staged in the update, keyed by package name.
array $context: The current context of the batch job.
See also
\Drupal\automatic_updates\Updater::begin()
File
- src/
BatchProcessor.php, line 67
Class
- BatchProcessor
- A batch processor for updates.
Namespace
Drupal\automatic_updatesCode
public static function begin(array $project_versions, array &$context) : void {
try {
static::getUpdater()
->begin($project_versions);
} catch (\Throwable $e) {
static::handleException($e, $context);
}
}