You are here

public static function Search::getDefaultOptions in Search API Autocomplete 8

Retrieves the default options for a search.

Return value

array An associative array of options.

Overrides SearchInterface::getDefaultOptions

1 call to Search::getDefaultOptions()
Search::getOptions in src/Entity/Search.php
Gets the search's options.

File

src/Entity/Search.php, line 171

Class

Search
Describes the autocomplete settings for a certain search.

Namespace

Drupal\search_api_autocomplete\Entity

Code

public static function getDefaultOptions() {
  return [
    'autosubmit' => TRUE,
    'delay' => NULL,
    'limit' => 10,
    'min_length' => 1,
    'submit_button_selector' => ':submit',
  ];
}