public function SensorDetailForm::__construct in Monitoring 8
Constructs a \Drupal\monitoring\Form\SensorDetailForm object.
Parameters
\Drupal\monitoring\SensorRunner $sensor_runner: The factory for configuration objects.
\Drupal\monitoring\Sensor\SensorManager $sensor_manager: The sensor manager service.
File
- src/
Form/ SensorDetailForm.php, line 47 - Contains \Drupal\monitoring\Form\SensorDetailForm.
Class
- SensorDetailForm
- Sensor detail form controller.
Namespace
Drupal\monitoring\FormCode
public function __construct(SensorRunner $sensor_runner, SensorManager $sensor_manager) {
$this->sensorRunner = $sensor_runner;
$this->sensorManager = $sensor_manager;
}