You are here

public function SearchApiAlgoliaBackend::getSupportedFeatures in Search API Algolia 8

Same name and namespace in other branches
  1. 3.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::getSupportedFeatures()
  2. 2.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::getSupportedFeatures()

Returns all features that this backend supports.

Features are optional extensions to Search API functionality and usually defined and used by third-party modules.

There are currently two features defined directly in the Search API module:

Return value

string[] The identifiers of all features this backend supports.

Overrides BackendPluginBase::getSupportedFeatures

See also

hook_search_api_server_features_alter()

File

src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php, line 625

Class

SearchApiAlgoliaBackend
Class SearchApiAlgoliaBackend.

Namespace

Drupal\search_api_algolia\Plugin\search_api\backend

Code

public function getSupportedFeatures() {
  return [
    'search_api_autocomplete',
    'search_api_facets',
    'search_api_facets_operator_or',
  ];
}