You are here

protected function ConfigValueSensorPlugin::getConfig in Monitoring 8

Gets config.

Parameters

string $name: Config name.

Return value

\Drupal\Core\Config\Config The config.

1 call to ConfigValueSensorPlugin::getConfig()
ConfigValueSensorPlugin::getValue in src/Plugin/monitoring/SensorPlugin/ConfigValueSensorPlugin.php
Gets the current value.

File

src/Plugin/monitoring/SensorPlugin/ConfigValueSensorPlugin.php, line 60
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ConfigValueSensorPlugin

Class

ConfigValueSensorPlugin
Generic sensor that checks for a configuration value.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

protected function getConfig($name) {

  // @todo fix condition $name==''
  return $this
    ->getService('config.factory')
    ->get($name);
}