public function UpdateController::updateStatusManually in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/update/src/Controller/UpdateController.php \Drupal\update\Controller\UpdateController::updateStatusManually()
Manually checks the update status without the use of cron.
1 string reference to 'UpdateController::updateStatusManually'
- update.routing.yml in core/
modules/ update/ update.routing.yml - core/modules/update/update.routing.yml
File
- core/
modules/ update/ src/ Controller/ UpdateController.php, line 65 - Contains \Drupal\update\Controller\UpdateController.
Class
- UpdateController
- Controller routines for update routes.
Namespace
Drupal\update\ControllerCode
public function updateStatusManually() {
$this->updateManager
->refreshUpdateData();
$batch = array(
'operations' => array(
array(
array(
$this->updateManager,
'fetchDataBatch',
),
array(),
),
),
'finished' => 'update_fetch_data_finished',
'title' => t('Checking available update data'),
'progress_message' => t('Trying to check available update data ...'),
'error_message' => t('Error checking available update data.'),
);
batch_set($batch);
return batch_process('admin/reports/updates');
}