You are here

public function FilterInterface::process in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Plugin/FilterInterface.php \Drupal\filter\Plugin\FilterInterface::process()

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.

See also

\Drupal\filter\FilterProcessResult

21 methods override FilterInterface::process()
EditorFileReference::process in core/modules/editor/src/Plugin/Filter/EditorFileReference.php
Performs the filter processing.
FilterAlign::process in core/modules/filter/src/Plugin/Filter/FilterAlign.php
Performs the filter processing.
FilterAutoP::process in core/modules/filter/src/Plugin/Filter/FilterAutoP.php
Performs the filter processing.
FilterCaption::process in core/modules/filter/src/Plugin/Filter/FilterCaption.php
Performs the filter processing.
FilterHtml::process in core/modules/filter/src/Plugin/Filter/FilterHtml.php
Performs the filter processing.

... See full list

File

core/modules/filter/src/Plugin/FilterInterface.php, line 173

Class

FilterInterface
Defines the interface for text processing filter plugins.

Namespace

Drupal\filter\Plugin

Code

public function process($text, $langcode);