You are here

public function SensorResultViewsData::getViewsData in Monitoring 8

Returns views data for the entity type.

Return value

array Views data in the format of hook_views_data().

Overrides EntityViewsData::getViewsData

File

src/Entity/ViewsData/SensorResultViewsData.php, line 19
Contains \Drupal\monitoring\Entity\ViewsData\SensorResultViewsData.

Class

SensorResultViewsData
Provides the views data for the message entity type.

Namespace

Drupal\monitoring\Entity\ViewsData

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['monitoring_sensor_result']['sensor_message']['field']['id'] = 'monitoring_sensor_message';
  return $data;
}