You are here

protected function SensorResultEntity::getSensorName in Monitoring 8

Gets sensor name.

Return value

string Sensor name.

File

src/Entity/SensorResultEntity.php, line 82
Contains \Drupal\monitoring\Entity\SensorResultEntity.

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

protected function getSensorName() {
  return $this
    ->get('sensor_name')->value;
}