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