You are here

public function Synonym::getOwner in Search API Synonym 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Synonym.php, line 134

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

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