public function RebuildSensorList::rebuild in Monitoring 8
Rebuilds updated requirements sensors.
1 string reference to 'RebuildSensorList::rebuild'
File
- src/
Controller/ RebuildSensorList.php, line 15
Class
- RebuildSensorList
- Controller to rebuild the sensors.
Namespace
Drupal\monitoring\ControllerCode
public function rebuild() {
\Drupal::service('monitoring.sensor_manager')
->rebuildSensors();
return $this
->redirect('monitoring.sensors_overview_settings');
}