You are here

public function Database::defaultConfiguration in Search API 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

1 call to Database::defaultConfiguration()
Database::postUpdate in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Notifies the backend that its configuration was updated.

File

modules/search_api_db/src/Plugin/search_api/backend/Database.php, line 433

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

public function defaultConfiguration() {
  return [
    'database' => NULL,
    'min_chars' => 1,
    'matching' => 'words',
    'autocomplete' => [
      'suggest_suffix' => TRUE,
      'suggest_words' => TRUE,
    ],
  ];
}