function gdpr_tasks_gdpr_task_insert in General Data Protection Regulation 7
Implements hook_ENTITY_TYPE_insert().
File
- modules/
gdpr_tasks/ gdpr_tasks.module, line 435 - Module file for the GDPR Tasks module.
Code
function gdpr_tasks_gdpr_task_insert($task) {
/* @var \GDPRTask $task */
if ($task->type == 'gdpr_sar') {
$queue = DrupalQueue::get('gdpr_tasks_process_gdpr_sar');
$queue
->createQueue();
$queue
->createItem($task
->identifier());
}
}