You are here

function monitoring_sensor_manager in Monitoring 7

Same name and namespace in other branches
  1. 8 monitoring.module \monitoring_sensor_manager()

Returns an instance of the sensor manager.

Return value

\Drupal\monitoring\Sensor\SensorManager The sensor manager.

6 calls to monitoring_sensor_manager()
MonitoringTestBase::setUp in test/tests/monitoring.base.test
Sets up a Drupal site for running functional and integration tests.
monitoring_demo_enable in test/monitoring_demo.install
Implements hook_enable().
monitoring_drush_disable in ./monitoring.drush.inc
Drush callback to disable a sensor.
monitoring_drush_enable in ./monitoring.drush.inc
Drush callback to enable a sensor.
monitoring_drush_purge_settings in ./monitoring.drush.inc
Drush callback to purge sensor settings.

... See full list

File

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

Code

function monitoring_sensor_manager() {
  $sensor_manager =& drupal_static(__FUNCTION__);
  if (!$sensor_manager) {
    $sensor_manager = new SensorManager();
  }
  return $sensor_manager;
}