You are here

public function RebuildSensorList::rebuild in Monitoring 8

Rebuilds updated requirements sensors.

1 string reference to 'RebuildSensorList::rebuild'
monitoring.routing.yml in ./monitoring.routing.yml
monitoring.routing.yml

File

src/Controller/RebuildSensorList.php, line 15

Class

RebuildSensorList
Controller to rebuild the sensors.

Namespace

Drupal\monitoring\Controller

Code

public function rebuild() {
  \Drupal::service('monitoring.sensor_manager')
    ->rebuildSensors();
  return $this
    ->redirect('monitoring.sensors_overview_settings');
}