You are here

public function FacetsQueryTypeMappingInterface::alterFacetQueryTypeMapping in Search API 8

Alters the query types for a specified data type.

Backend plugins can use this method to override the default query types provided by the Search API with backend-specific ones that better use features of that backend.

Parameters

array $mapping: An associative array mapping data type IDs to arrays of Facets query type plugin IDs compatible with that data type.

File

src/FacetsQueryTypeMappingInterface.php, line 21

Class

FacetsQueryTypeMappingInterface
Defines a method for mapping Search API data types to Facets query types.

Namespace

Drupal\search_api

Code

public function alterFacetQueryTypeMapping(array &$mapping);