You are here

public function SensorResult::getSensorId in Monitoring 8

Gets sensor name.

Return value

string

Overrides SensorResultInterface::getSensorId

2 calls to SensorResult::getSensorId()
SensorResult::compile in src/Result/SensorResult.php
Compiles added status messages sets the status.
SensorResult::toArray in src/Result/SensorResult.php
Returns sensor result data as array.

File

src/Result/SensorResult.php, line 500

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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