You are here

public function AutocompletionConfiguration::setMinChar in Search Autocomplete 2.x

Same name and namespace in other branches
  1. 8 src/Entity/AutocompletionConfiguration.php \Drupal\search_autocomplete\Entity\AutocompletionConfiguration::setMinChar()

Sets how many characters needs to be entered in the field before autocompletion occurs.

Parameters

int $min_char: The number of characters to enter before autocompletion starts.

Overrides AutocompletionConfigurationInterface::setMinChar

File

src/Entity/AutocompletionConfiguration.php, line 290

Class

AutocompletionConfiguration
Defines the autocompletion_configuration entity.

Namespace

Drupal\search_autocomplete\Entity

Code

public function setMinChar($min_char) {
  $this->minChar = $min_char;
}