public function ResultSet::getCloneForQuery in Search API 8
Creates a clone of this result set based on the given query.
Parameters
\Drupal\search_api\Query\QueryInterface $query: The query for the new result set.
Return value
static A clone of this result set.
Overrides ResultSetInterface::getCloneForQuery
File
- src/
Query/ ResultSet.php, line 218
Class
- ResultSet
- Represents the result set of a search query.
Namespace
Drupal\search_api\QueryCode
public function getCloneForQuery(QueryInterface $query) {
$clone = clone $this;
$clone->query = $query;
return $clone;
}