You are here

function monitoring_entity_info in Monitoring 7

Implements hook_entity_info().

File

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

Code

function monitoring_entity_info() {
  $info['monitoring_sensor_result'] = array(
    'label' => t('Monitoring sensor result'),
    'module' => 'monitoring',
    'controller class' => 'Drupal\\monitoring\\Controller\\SensorResultController',
    'metadata controller class' => 'Drupal\\monitoring\\Controller\\SensorResultMetadataController',
    'views controller class' => 'Drupal\\monitoring\\Controller\\SensorResultViewsController',
    'entity class' => 'Drupal\\monitoring\\Entity\\SensorResultEntity',
    'base table' => 'monitoring_sensor_result',
    'uri callback' => 'entity_class_uri',
    'label callback' => 'entity_class_label',
    'entity keys' => array(
      'id' => 'record_id',
    ),
  );
  return $info;
}