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