You are here

public function Relation::getOwner in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Relation.php \Drupal\relation\Entity\Relation::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Relation.php, line 129
Contains \Drupal\relation\Entity\Relation.

Class

Relation
Defines relation entity.

Namespace

Drupal\relation\Entity

Code

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