You are here

protected function SensorResultEntity::setSensorName in Monitoring 8

Sets sensor name.

Parameters

string $name: The name of the sensor.

File

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

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

protected function setSensorName($name) {
  $this
    ->set('sensor_name', $name);
}