Search ​
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Search
- Since
- 3.0.0
Search helper.
Public Methods ​
Method | Description |
---|---|
normalizeKeywords() | Normalizes search keywords. |
normalizeKeywords()
​
Normalizes search keywords.
Arguments ​
$str
(string[], string) – The dirty keywords$ignore
(array) – Ignore words to strip out$processCharMap
(boolean) – Whether to remove punctuation and diacritics (default is true)$language
Returns ​
string – The cleansed keywords.