public function GDPRTaskController::save in General Data Protection Regulation 7
Implements EntityAPIControllerInterface.
Parameters
$transaction: Optionally a DatabaseTransaction object to use. Allows overrides to pass in their transaction object.
Overrides EntityAPIController::save
File
- modules/
gdpr_tasks/ src/ Entity/ GDPRTaskController.php, line 22
Class
- GDPRTaskController
- The Task entity controller class.
Code
public function save($entity, DatabaseTransaction $transaction = NULL) {
$entity->changed = REQUEST_TIME;
return parent::save($entity, $transaction);
}