You are here

function SensorResult::getSensorName in Monitoring 7

Gets sensor name.

Return value

string

Overrides SensorResultInterface::getSensorName

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

File

lib/Drupal/monitoring/Result/SensorResult.php, line 460
Contains \Drupal\monitoring\Result\SensorResult.

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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