You are here

function monitoring_sensor_config_by_categories in Monitoring 8

Gets sensor config grouped by categories.

Parameters

bool $enabled: Sensor isEnabled flag.

Return value

\Drupal\monitoring\Entity\SensorConfig[] Sensor config.

1 call to monitoring_sensor_config_by_categories()
MonitoringUITest::testSensorOverviewPage in tests/src/Functional/MonitoringUITest.php
Tests the sensor results overview and the global sensor log.

File

./monitoring.module, line 50
Monitoring bootstrap file.

Code

function monitoring_sensor_config_by_categories($enabled = TRUE) {
  return monitoring_sensor_manager()
    ->getSensorConfigByCategories($enabled);
}