private static function CustomSearchBlockForm::filterKeys in Custom Search 8
Helper functions.
1 call to CustomSearchBlockForm::filterKeys()
- CustomSearchBlockForm::submitForm in src/
Form/ CustomSearchBlockForm.php - Form submission handler.
File
- src/
Form/ CustomSearchBlockForm.php, line 566
Class
- CustomSearchBlockForm
- Builds the search form for the search block.
Namespace
Drupal\custom_search\FormCode
private static function filterKeys($val) {
return strlen($val) > 2 && $val[1] == '-' ? mb_substr($val, 2) : $val;
}