You are here

public function SavedSearch::getOwner in Search API Saved Searches 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/SavedSearch.php, line 478

Class

SavedSearch
Provides an entity type for saved searches.

Namespace

Drupal\search_api_saved_searches\Entity

Code

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