protected function SensorManager::mergeSettings in Monitoring 7
Merges provided sensor settings with saved settings.
Parameters
string $sensor_name: Sensor name.
array $default_settings: Default sensor settings.
Return value
array Merged settings.
1 call to SensorManager::mergeSettings()
- SensorManager::loadSensorInfo in lib/
Drupal/ monitoring/ Sensor/ SensorManager.php - Loads sensor info from hooks.
File
- lib/
Drupal/ monitoring/ Sensor/ SensorManager.php, line 281 - Contains \Drupal\monitoring\Sensor\SensorManager.
Class
- SensorManager
- Manages sensor definitions and settings.
Namespace
Drupal\monitoring\SensorCode
protected function mergeSettings($sensor_name, array $default_settings) {
$saved_settings = monitoring_sensor_settings_get($sensor_name);
return $this
->mergeSettingsArrays(array(
$default_settings,
$saved_settings,
));
}