You are here

public function UserConsent::getOwner in Data Policy 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

1 call to UserConsent::getOwner()
UserConsent::label in src/Entity/UserConsent.php
Override of the default label() function to return a human-friendly name.

File

src/Entity/UserConsent.php, line 79

Class

UserConsent
Defines the User consent entity.

Namespace

Drupal\data_policy\Entity

Code

public function getOwner() {
  return $this
    ->get('user_id')->entity;
}