You are here

public function Task::setProcessedBy in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setProcessedBy()
  2. 3.0.x modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setProcessedBy()

File

modules/gdpr_tasks/src/Entity/Task.php, line 117

Class

Task
Defines the Task entity.

Namespace

Drupal\gdpr_tasks\Entity

Code

public function setProcessedBy(UserInterface $account) {
  $this
    ->set('processed_by', $account
    ->id());
  return $this;
}