public function Task::setOwnerId in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setOwnerId()
- 3.0.x modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- modules/
gdpr_tasks/ src/ Entity/ Task.php, line 101
Class
- Task
- Defines the Task entity.
Namespace
Drupal\gdpr_tasks\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}