public function SpamspanTrait::callbackBareEmailAddresses in SpamSpan filter 8.2
Same name and namespace in other branches
- 8 src/SpamspanTrait.php \Drupal\spamspan\SpamspanTrait::callbackBareEmailAddresses()
Callback function for preg_replace_callback.
Replaces bare email addresses.
Parameters
array $matches: The matches from preg_match. $matches[0] - the entire matched string. $matches[1] - the local part of the email address. $matches[2] - the domain of the email address.
Return value
string The replaced text.
1 call to SpamspanTrait::callbackBareEmailAddresses()
File
- src/
SpamspanTrait.php, line 183
Class
- SpamspanTrait
- Trait SpamspanTrait.
Namespace
Drupal\spamspanCode
public function callbackBareEmailAddresses(array $matches) {
return $this
->output($matches[1], $matches[2]);
}