You are here

public function SearchApiSolrBackend::defaultConfiguration in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()
  2. 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()
  3. 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

1 call to SearchApiSolrBackend::defaultConfiguration()
SearchApiSolrBackend::submitConfigurationForm in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Form submission handler.

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 167

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function defaultConfiguration() {
  return array(
    'excerpt' => FALSE,
    'retrieve_data' => FALSE,
    'highlight_data' => FALSE,
    'skip_schema_check' => FALSE,
    'site_hash' => FALSE,
    'suggest_suffix' => TRUE,
    'suggest_corrections' => TRUE,
    'suggest_words' => FALSE,
    // Set the default for new servers to NULL to force "safe" un-selected
    // radios. @see https://www.drupal.org/node/2820244
    'connector' => NULL,
    'connector_config' => [],
  );
}