public function DummyTooltip::process in Glossify 8
Performs the filter processing.
Parameters
string $text: The text string to be filtered.
string $langcode: The language code of the text to be filtered.
Return value
\Drupal\filter\FilterProcessResult The filtered text, wrapped in a FilterProcessResult object, and possibly with associated assets, cacheability metadata and placeholders.
Overrides FilterInterface::process
See also
\Drupal\filter\FilterProcessResult
File
- tests/
src/ Unit/ GlossifyBaseTest.php, line 126
Class
- DummyTooltip
- Dummy tooltip object.
Namespace
Drupal\Tests\glossify\UnitCode
public function process($text, $langcode) {
$replacement = $this
->parseTooltipMatch($text, $this->terms, $this->caseSensitivity, $this->firstOnly, $this->displaytype, $this->urlpattern);
return $replacement;
}