You are here

protected function SearchApiSolrMultilingualBackend::ensureMultilingualFieldTypeExists in Apache Solr Multilingual 8

1 call to SearchApiSolrMultilingualBackend::ensureMultilingualFieldTypeExists()
SearchApiSolrMultilingualBackend::ensureAllMultilingualFieldsExist in src/Plugin/search_api/backend/SearchApiSolrMultilingualBackend.php

File

src/Plugin/search_api/backend/SearchApiSolrMultilingualBackend.php, line 250
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\backend

Code

protected function ensureMultilingualFieldTypeExists($field_type_name, $solr_field_type_name, IndexInterface $index) {
  if (!$this
    ->solrFieldTypeExists($solr_field_type_name, $index)) {
    $this
      ->createSolrMultilingualFieldType($field_type_name, $solr_field_type_name, $index);
  }
}