You are here

public function StatusController::refresh in Acquia Connector 8.2

Same name and namespace in other branches
  1. 8 src/Controller/StatusController.php \Drupal\acquia_connector\Controller\StatusController::refresh()
  2. 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'
acquia_connector.routing.yml in ./acquia_connector.routing.yml
acquia_connector.routing.yml

File

src/Controller/StatusController.php, line 20

Class

StatusController
Checks the current status of the Acquia Service.

Namespace

Drupal\acquia_connector\Controller

Code

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');
}