You are here

SensorResultViewsController.php in Monitoring 7

File

lib/Drupal/monitoring/Controller/SensorResultViewsController.php
View source
<?php

/**
 * @file
 * Contains \Drupal\monitoring\Controller\SensorResultViewsController.
 */
namespace Drupal\monitoring\Controller;


/**
 * Views controller for the monitoring_sensor_result entity.
 */
class SensorResultViewsController extends \EntityDefaultViewsController {

  /**
   * {@inheritdoc}
   */
  public function views_data() {
    $data = parent::views_data();
    $data['monitoring_sensor_result']['sensor_name']['field']['handler'] = 'Drupal\\monitoring\\Views\\Handler\\Field\\SensorName';
    return $data;
  }

}

Classes

Namesort descending Description
SensorResultViewsController Views controller for the monitoring_sensor_result entity.