You are here

public function Sensor::getSensorName in Monitoring 7

Gets sensor name (not the label).

Return value

string Sensor name.

Overrides SensorInterface::getSensorName

File

lib/Drupal/monitoring/Sensor/Sensor.php, line 36
Contains \Drupal\monitoring\Sensor\Sensor.

Class

Sensor
Abstract SensorInterface implementation with common behaviour.

Namespace

Drupal\monitoring\Sensor

Code

public function getSensorName() {
  return $this->info
    ->getName();
}