You are here

public function Suggester::defaultConfiguration in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/search_api_autocomplete/suggester/Suggester.php \Drupal\search_api_solr\Plugin\search_api_autocomplete\suggester\Suggester::defaultConfiguration()
  2. 4.x src/Plugin/search_api_autocomplete/suggester/Suggester.php \Drupal\search_api_solr\Plugin\search_api_autocomplete\suggester\Suggester::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

File

src/Plugin/search_api_autocomplete/suggester/Suggester.php, line 46

Class

Suggester
Provides a suggester plugin that retrieves suggestions from the server.

Namespace

Drupal\search_api_solr\Plugin\search_api_autocomplete\suggester

Code

public function defaultConfiguration() {
  return [
    'search_api_solr/site_hash' => TRUE,
    'search_api/index' => '',
    'drupal/langcode' => 'any',
  ];
}