protected function SuggestionsSpellCheck::combineArrays in Search API Spellcheck 8.3
Combine multiple arrays to one array with all possible suggestions.
1 call to SuggestionsSpellCheck::combineArrays()
- SuggestionsSpellCheck::render in src/
Plugin/ views/ area/ SuggestionsSpellCheck.php - Render the area.
File
- src/
Plugin/ views/ area/ SuggestionsSpellCheck.php, line 105
Class
- SuggestionsSpellCheck
- Provides an area for messages.
Namespace
Drupal\search_api_spellcheck\Plugin\views\areaCode
protected function combineArrays(array $suggestions) {
$odometer = array_fill(0, count($suggestions), 0);
$combined_suggestions[] = $this
->formCombination($odometer, $suggestions);
while ($this
->odometerIncrement($odometer, $suggestions)) {
$combined_suggestions[] = $this
->formCombination($odometer, $suggestions);
}
return $combined_suggestions;
}