public function SearchApiServiceInterface::supportsFeature in Search API 7
Determines whether this service class supports a given feature.
Features are optional extensions to Search API functionality and usually defined and used by third-party modules.
There are currently three features defined directly in the Search API project:
- "search_api_facets", by the search_api_facetapi module.
- "search_api_facets_operator_or", also by the search_api_facetapi module.
- "search_api_mlt", by the search_api_views module.
Other contrib modules might define additional features. These should always be properly documented in the module by which they are defined.
Parameters
string $feature: The name of the optional feature.
Return value
bool TRUE if this service knows and supports the specified feature. FALSE otherwise.
2 methods override SearchApiServiceInterface::supportsFeature()
- SearchApiAbstractService::supportsFeature in includes/
service.inc - Implements SearchApiServiceInterface::__construct().
- SearchApiDummyService::supportsFeature in tests/
search_api_test_2.module - Determines whether this service class supports a given feature.
File
- includes/
service.inc, line 98 - Contains SearchApiServiceInterface and SearchApiAbstractService.
Class
- SearchApiServiceInterface
- Interface defining the methods search services have to implement.
Code
public function supportsFeature($feature);