You are here

protected function StateValueSensorPlugin::getValueDescription in Monitoring 8

Gets the value description that will be shown in the settings form.

Return value

string Value description.

Overrides ValueComparisonSensorPluginBase::getValueDescription

File

src/Plugin/monitoring/SensorPlugin/StateValueSensorPlugin.php, line 27
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\StateValueSensorPlugin

Class

StateValueSensorPlugin
Generic sensor that checks for a state value.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

protected function getValueDescription() {
  return t('The expected value of state %key, current value: %actVal', array(
    '%key' => $this->sensorConfig
      ->getSetting('key'),
    '%actVal' => $this
      ->getValueText(),
  ));
}