protected function KeywordFilter::matchRegex in Tamper 8
Determines whether we get a keyword filter match using regex.
File
- src/
Plugin/ Tamper/ KeywordFilter.php, line 245
Class
- KeywordFilter
- Plugin implementation for filtering based on a list of words/phrases.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function matchRegex($field, $word) {
return preg_match($word, $field) > 0;
}