You are here

public function Conditions::getOwner in Legal 8

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

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Conditions.php, line 57

Class

Conditions
Defines the Legal Terms & Conditions entity.

Namespace

Drupal\legal\Entity

Code

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