You are here

interface SensorConfigurableInterface in Monitoring 7

Interface for a configurable sensor.

Base interface defining implicit operations for a monitoring sensor exposing custom settings.

@todo more

Hierarchy

Expanded class hierarchy of SensorConfigurableInterface

All classes that implement SensorConfigurableInterface

1 file declares its use of SensorConfigurableInterface
monitoring.admin.inc in ./monitoring.admin.inc
Admin page/form callbacks.

File

lib/Drupal/monitoring/Sensor/SensorConfigurableInterface.php, line 17
Monitoring sensor settings interface.

Namespace

Drupal\monitoring\Sensor
View source
interface SensorConfigurableInterface {

  /**
   * Gets settings form for a specific sensor.
   *
   * @param $form
   *   Drupal $form structure.
   * @param array $form_state
   *   Drupal $form_state object. Carrying the string sensor_name.
   *
   * @return array
   *   Drupal form structure.
   */
  function settingsForm($form, &$form_state);

  /**
   * Form validator for a sensor settings form.
   *
   * @param $form
   *   Drupal $form structure.
   * @param array $form_state
   *   Drupal $form_state object. Carrying the string sensor_name.
   */
  function settingsFormValidate($form, &$form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
SensorConfigurableInterface::settingsForm function Gets settings form for a specific sensor. 1
SensorConfigurableInterface::settingsFormValidate function Form validator for a sensor settings form. 1