public function TwigTestExtension::getFilters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \TwigTestExtension::getFilters()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ IntegrationTest.php, line 136
Class
Code
public function getFilters() {
return array(
new Twig_SimpleFilter('§', array(
$this,
'§Filter',
)),
new Twig_SimpleFilter('escape_and_nl2br', array(
$this,
'escape_and_nl2br',
), array(
'needs_environment' => true,
'is_safe' => array(
'html',
),
)),
new Twig_SimpleFilter('nl2br', array(
$this,
'nl2br',
), array(
'pre_escape' => 'html',
'is_safe' => array(
'html',
),
)),
new Twig_SimpleFilter('escape_something', array(
$this,
'escape_something',
), array(
'is_safe' => array(
'something',
),
)),
new Twig_SimpleFilter('preserves_safety', array(
$this,
'preserves_safety',
), array(
'preserves_safety' => array(
'html',
),
)),
new Twig_SimpleFilter('*_path', array(
$this,
'dynamic_path',
)),
new Twig_SimpleFilter('*_foo_*_bar', array(
$this,
'dynamic_foo',
)),
);
}