public function TwigExtension::checkMarkup in Twig Tweak 8.2
Same name and namespace in other branches
- 8 src/TwigExtension.php \Drupal\twig_tweak\TwigExtension::checkMarkup()
Runs all the enabled filters on a piece of text.
Parameters
string $text: The text to be filtered.
string|null $format_id: (optional) The machine name of the filter format to be used to filter the text. Defaults to the fallback format. See filter_fallback_format().
string $langcode: (optional) The language code of the text to be filtered.
array $filter_types_to_skip: (optional) An array of filter types to skip, or an empty array (default) to skip no filter types.
Return value
\Drupal\Component\Render\MarkupInterface The filtered text.
See also
File
- src/
TwigExtension.php, line 1123
Class
- TwigExtension
- Twig extension with some useful functions and filters.
Namespace
Drupal\twig_tweakCode
public function checkMarkup($text, $format_id = NULL, $langcode = '', array $filter_types_to_skip = []) {
return check_markup($text, $format_id, $langcode, $filter_types_to_skip);
}