public function SensorResultController::create in Monitoring 7
File
- lib/
Drupal/ monitoring/ Controller/ SensorResultController.php, line 17 - Contains \Drupal\monitoring\Controller\SensorResultController.
Class
- SensorResultController
- Controller class for the monitoring_sensor_result entity.
Namespace
Drupal\monitoring\ControllerCode
public function create(array $values = array()) {
$entity = parent::create($values);
if (empty($entity->timestamp)) {
$entity->timestamp = REQUEST_TIME;
}
return $entity;
}