You are here

public function ForceRunController::forceRunAll in Monitoring 8

Force runs all sensors.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse

1 string reference to 'ForceRunController::forceRunAll'
monitoring.routing.yml in ./monitoring.routing.yml
monitoring.routing.yml

File

src/Controller/ForceRunController.php, line 55

Class

ForceRunController

Namespace

Drupal\monitoring\Controller

Code

public function forceRunAll() {
  $this->sensorRunner
    ->resetCache();
  $this
    ->messenger()
    ->addMessage($this
    ->t('Force run of all cached sensors executed.'));
  return $this
    ->redirect('monitoring.sensor_list');
}