protected function ConfigValueSensorPlugin::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/ ConfigValueSensorPlugin.php, line 31 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ConfigValueSensorPlugin
Class
- ConfigValueSensorPlugin
- Generic sensor that checks for a configuration value.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
protected function getValueDescription() {
return t('The expected value of config %key, current value: %actVal', array(
'%key' => $this->sensorConfig
->getSetting('config') . ':' . $this->sensorConfig
->getSetting('key'),
'%actVal' => $this
->getValueText(),
));
}