You are here

public function SearchApiDummyService::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.

Overrides SearchApiServiceInterface::supportsFeature

File

tests/search_api_test_2.module, line 66
Provides a second test service and server for testing Search API.

Class

SearchApiDummyService
Dummy service for testing.

Code

public function supportsFeature($feature) {
  return FALSE;
}