public static function SavedSearch::getCurrentUserId in Search API Saved Searches 8
Returns the default value for the "uid" base field definition.
Return value
array An array with the default value.
See also
\Drupal\search_api_saved_searches\Entity\SavedSearch::baseFieldDefinitions()
File
- src/
Entity/ SavedSearch.php, line 258
Class
- SavedSearch
- Provides an entity type for saved searches.
Namespace
Drupal\search_api_saved_searches\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}