public function AutocompletionConfiguration::setMaxSuggestions in Search Autocomplete 8
Same name and namespace in other branches
- 2.x 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 277
Class
- AutocompletionConfiguration
- Defines the autocompletion_configuration entity.
Namespace
Drupal\search_autocomplete\EntityCode
public function setMaxSuggestions($max_suggestions) {
$this->maxSuggestions = $max_suggestions;
}