You are here

protected function AssertLinkitFilterTrait::process in Linkit 8.5

Test helper method that wraps the filter process method.

Parameters

string $input: 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.

See also

\Drupal\filter\Plugin\FilterInterface::process

File

tests/src/Kernel/AssertLinkitFilterTrait.php, line 79

Class

AssertLinkitFilterTrait
Provides helper methods for assertions.

Namespace

Drupal\Tests\linkit\Kernel

Code

protected function process($input, $langcode = LanguageInterface::LANGCODE_SITE_DEFAULT) {
  return $this->filter
    ->process($input, $langcode);
}