public function AutocompletionConfiguration::setMaxSuggestions in Search Autocomplete 2.x
Same name and namespace in other branches
- 8 src/Entity/AutocompletionConfiguration.php \Drupal\search_autocomplete\Entity\AutocompletionConfiguration::setMaxSuggestions()
Sets how many suggestions should be displayed among matching suggestions available.
Parameters
int $max_suggestions: The maximum number of suggestions to be displayed.
Overrides AutocompletionConfigurationInterface::setMaxSuggestions
File
- src/
Entity/ AutocompletionConfiguration.php, line 306
Class
- AutocompletionConfiguration
- Defines the autocompletion_configuration entity.
Namespace
Drupal\search_autocomplete\EntityCode
public function setMaxSuggestions($max_suggestions) {
$this->maxSuggestions = $max_suggestions;
}