protected function SearchApiSolrMultilingualBackend::solrFieldTypeExists in Apache Solr Multilingual 8
1 call to SearchApiSolrMultilingualBackend::solrFieldTypeExists()
- SearchApiSolrMultilingualBackend::ensureMultilingualFieldTypeExists in src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php
File
- src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php, line 274 - Contains \Drupal\as_search\Plugin\search_api\backend\ASSearchApiSolrBackend.
Class
- SearchApiSolrMultilingualBackend
- Plugin annotation @SearchApiBackend( id = "search_api_solr_multilingual", label = @Translation("Solr Multilingual"), description = @Translation("Index items using an Apache Solr Multilingual search server.") )
Namespace
Drupal\apachesolr_multilingual\Plugin\search_api\backendCode
protected function solrFieldTypeExists($solr_field_type_name, IndexInterface $index) {
$response = $this
->solrRestGet('schema/fieldtypes', $index);
$found = FALSE;
foreach ($response['fieldTypes'] as $field_type) {
if ($field_type['name'] == $solr_field_type_name) {
$found = TRUE;
break;
}
}
return $found;
}