public function SensorResultMetadataController::entityPropertyInfo in Monitoring 7
File
- lib/
Drupal/ monitoring/ Controller/ SensorResultMetadataController.php, line 17 - Contains \Drupal\monitoring\Controller\SensorResultMetadataController.
Class
- SensorResultMetadataController
- Metadata controller class for the monitoring_sensor_result entity.
Namespace
Drupal\monitoring\ControllerCode
public function entityPropertyInfo() {
// Loading property information and make em better usable in here.
$info = parent::entityPropertyInfo();
$prop =& $info[$this->type]['properties'];
// The timestamp should be rendered/shown as a date.
$prop['timestamp']['type'] = 'date';
return $info;
}