You are here

public function Keyword::getOwner in Alinks 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Keyword.php, line 106

Class

Keyword
Defines the Keyword entity.

Namespace

Drupal\alinks\Entity

Code

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