public function SavedSearchInterface::setQuery in Search API Saved Searches 8
Sets the search query.
Parameters
\Drupal\search_api\Query\QueryInterface $query: The new query.
Return value
$this
1 method overrides SavedSearchInterface::setQuery()
- SavedSearch::setQuery in src/
Entity/ SavedSearch.php - Sets the search query.
File
- src/
SavedSearchInterface.php, line 42
Class
- SavedSearchInterface
- Provides an interface for saved search entities.
Namespace
Drupal\search_api_saved_searchesCode
public function setQuery(QueryInterface $query);