protected function AlinkPostRenderer::replaceAll in Alinks 8
File
- src/
AlinkPostRenderer.php, line 175
Class
- AlinkPostRenderer
- Class AlinkPostRenderer.
Namespace
Drupal\alinksCode
protected function replaceAll(Keyword $search, $replace, $subject, &$count = 0) {
$subject = str_replace($search
->getText(), $replace, $subject, $count);
if ($count == 0) {
// @todo: Try stemmer
}
return $subject;
}