public function SearchApiElasticsearchBackend::supportsDataType in Elasticsearch Connector 8.5
Same name and namespace in other branches
- 8.7 src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php \Drupal\elasticsearch_connector\Plugin\search_api\backend\SearchApiElasticsearchBackend::supportsDataType()
- 8.6 src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php \Drupal\elasticsearch_connector\Plugin\search_api\backend\SearchApiElasticsearchBackend::supportsDataType()
Determines whether the backend supports a given add-on data type.
Parameters
string $type: The identifier of the add-on data type.
Return value
bool TRUE if the backend supports that data type.
Overrides BackendPluginBase::supportsDataType
File
- src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php, line 1140
Class
- SearchApiElasticsearchBackend
- Elasticsearch Search API Backend definition.
Namespace
Drupal\elasticsearch_connector\Plugin\search_api\backendCode
public function supportsDataType($type) {
return in_array($type, [
'object',
'location',
]);
}