public TwigExtension::getFilters()
File
core/lib/Drupal/Core/Template/TwigExtension.php, line 144
Class
TwigExtension A class providing Drupal Twig extensions.
Namespace
Drupal\Core\Template
Code
public function getFilters() {
return array(
// Translation filters.
new \Twig_SimpleFilter('t', 't', array('is_safe' => array('html'))),
new \Twig_SimpleFilter('trans', 't', array('is_safe' => array('html'))),
// The "raw" filter is not detectable when parsing "trans"