You are here

public function Accepted::getOwner in Legal 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Accepted.php \Drupal\legal\Entity\Accepted::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Accepted.php, line 57

Class

Accepted
Defines the Legal Terms & Conditions accepted entity.

Namespace

Drupal\legal\Entity

Code

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