You are here

monitoring_multigraph.module in Monitoring 8

Monitoring multigraph bootstrap file.

File

modules/multigraph/monitoring_multigraph.module
View source
<?php

/**
 * @file
 * Monitoring multigraph bootstrap file.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function monitoring_multigraph_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'entity.monitoring_multigraph.list':
      $output = '<p>' . t('A monitoring <em>multigraph</em> is a bundle of monitoring sensors. This functionality provides monitoring multigraph information to 3rd party applications.') . '</p>';
      return $output;
    case 'entity.monitoring_multigraph.add_form':
    case 'entity.monitoring_multigraph.edit_form':
      $output = '<p>' . t('To store a monitoring <em>multigraph</em> first provide basic information (label/description), then select and add sensors to add them to this multigraph.<br />* Please note that all changes are not saved until the form is submitted using the <b>Save</b> button.') . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
monitoring_multigraph_help Implements hook_help().