You are here

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\SensorPlugin

Code

public function getSensorId() {
  return $this->sensorConfig
    ->id();
}