protected function FindReplace::useRegex in Tamper 8
Check if we are using the regex callback.
Return value
bool TRUE when regex will be used.
2 calls to FindReplace::useRegex()
- FindReplace::getFunction in src/
Plugin/ Tamper/ FindReplace.php - Get the function to use for the find and replace.
- FindReplace::tamper in src/
Plugin/ Tamper/ FindReplace.php - Tamper data.
File
- src/
Plugin/ Tamper/ FindReplace.php, line 123
Class
- FindReplace
- Plugin implementation of the find_replace plugin.
Namespace
Drupal\tamper\Plugin\TamperCode
protected function useRegex() {
return $this
->getSetting(self::SETTING_WORD_BOUNDARIES) || $this
->getSetting(self::SETTING_WHOLE);
}