public function AddSearchMetaEvent::__construct in JSON:API Search API 8
AddSearchMetaEvent constructor.
Parameters
\Drupal\search_api\Query\QueryInterface $query: Query that was executed.
\Drupal\search_api\Query\ResultSetInterface $results: Results returned from the search.
array $meta: An array representing the meta portion of the JSON:API response.
File
- src/
Event/ AddSearchMetaEvent.php, line 45
Class
- AddSearchMetaEvent
- Allows for other sources to modify the meta portion of the search.
Namespace
Drupal\jsonapi_search_api\EventCode
public function __construct(QueryInterface $query, ResultSetInterface $results, array $meta) {
$this->query = $query;
$this->results = $results;
$this->meta = $meta;
}