public function SavedSearchTypeInterface::getActiveQuery in Search API Saved Searches 8
Retrieves an active search query that can be saved with this type.
Parameters
\Drupal\search_api\Utility\QueryHelperInterface|null $query_helper: (optional) The query helper service to use. Otherwise, it will be retrieved from the container.
Return value
\Drupal\search_api\Query\QueryInterface|null A search query that was executed in this page request and which can be saved with this saved search type. Or NULL if no such query could be found.
1 method overrides SavedSearchTypeInterface::getActiveQuery()
- SavedSearchType::getActiveQuery in src/
Entity/ SavedSearchType.php - Retrieves an active search query that can be saved with this type.
File
- src/
SavedSearchTypeInterface.php, line 144
Class
- SavedSearchTypeInterface
- Provides an interface for saved search types.
Namespace
Drupal\search_api_saved_searchesCode
public function getActiveQuery(QueryHelperInterface $query_helper = NULL);