You are here

public function GDPRTaskController::create in General Data Protection Regulation 7

Implements EntityAPIControllerInterface.

Overrides EntityAPIController::create

File

modules/gdpr_tasks/src/Entity/GDPRTaskController.php, line 11

Class

GDPRTaskController
The Task entity controller class.

Code

public function create(array $values = array()) {
  $values += array(
    'status' => 'requested',
  );
  $values += array(
    'created' => REQUEST_TIME,
  );
  $task = parent::create($values);
  return $task;
}