public function QueryInterface::getSearchId in Search API 8
Retrieves the search ID.
Parameters
bool $generate: (optional) If TRUE and no search ID was set yet for this query, generate one automatically. If FALSE, NULL will be returned in this case.
Return value
string|null The search ID, or NULL if none was set yet and $generate is FALSE.
1 method overrides QueryInterface::getSearchId()
- Query::getSearchId in src/
Query/ Query.php - Retrieves the search ID.
File
- src/
Query/ QueryInterface.php, line 80
Class
- QueryInterface
- Represents a search query on a Search API index.
Namespace
Drupal\search_api\QueryCode
public function getSearchId($generate = TRUE);