function suggestion_update_8202 in Autocomplete Search Suggestions 8.2
Add the padding configuration variable to set the minimum atoms in an ngram.
File
- ./
suggestion.install, line 125 - Contains suggestion.install.
Code
function suggestion_update_8202() {
$cfg = \Drupal::configFactory()
->getEditable('suggestion.config');
$max = $cfg
->get('atoms');
$cfg
->clear('atoms');
$cfg
->save(TRUE);
$cfg
->set('atoms_max', $max);
$cfg
->set('atoms_min', 1);
$cfg
->save(TRUE);
drupal_flush_all_caches();
}