public function TestBackend::getSupportedFeatures in Search API 8
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:
- search_api_mlt, by the \Drupal\search_api\Plugin\views\argument\SearchApiMoreLikeThis class.
- search_api_random_sort, by the \Drupal\search_api\Plugin\views\query\SearchApiQuery class.
Return value
string[] The identifiers of all features this backend supports.
Overrides BackendPluginBase::getSupportedFeatures
See also
hook_search_api_server_features_alter()
File
- tests/
search_api_test/ src/ Plugin/ search_api/ backend/ TestBackend.php, line 83
Class
- TestBackend
- Provides a dummy backend for testing purposes.
Namespace
Drupal\search_api_test\Plugin\search_api\backendCode
public function getSupportedFeatures() {
if ($override = $this
->getMethodOverride(__FUNCTION__)) {
return call_user_func($override, $this);
}
return [
'search_api_mlt',
];
}