public function SensorPluginBase::getSensorId in Monitoring 8
Gets sensor name (not the label).
Return value
string Sensor name.
Overrides SensorPluginInterface::getSensorId
File
- src/
SensorPlugin/ SensorPluginBase.php, line 105 - Contains \Drupal\monitoring\SensorPlugin\SensorPluginBase.
Class
- SensorPluginBase
- Abstract SensorPluginInterface implementation with common behaviour and will be extended by sensor plugins.
Namespace
Drupal\monitoring\SensorPluginCode
public function getSensorId() {
return $this->sensorConfig
->id();
}