You are here

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

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

1 call to SavedSearch::getOwnerId()
SavedSearch::urlRouteParameters in src/Entity/SavedSearch.php
Gets an array of placeholders for this entity.

File

src/Entity/SavedSearch.php, line 493

Class

SavedSearch
Provides an entity type for saved searches.

Namespace

Drupal\search_api_saved_searches\Entity

Code

public function getOwnerId() {
  return $this
    ->get('uid')->target_id;
}