public function StatusController::refresh in Acquia Connector 8
Same name and namespace in other branches
- 8.2 src/Controller/StatusController.php \Drupal\acquia_connector\Controller\StatusController::refresh()
- 3.x src/Controller/StatusController.php \Drupal\acquia_connector\Controller\StatusController::refresh()
Menu callback for 'admin/config/system/acquia-agent/refresh-status'.
1 string reference to 'StatusController::refresh'
File
- src/
Controller/ StatusController.php, line 20
Class
- StatusController
- Checks the current status of the Acquia Service.
Namespace
Drupal\acquia_connector\ControllerCode
public function refresh() {
// Refresh subscription information, so we are sure about our update status.
// We send a heartbeat here so that all of our status information gets
// updated locally via the return data.
$subscription = new Subscription();
$subscription
->update();
// Return to the setting pages (or destination).
return $this
->redirect('system.status');
}