public function TwigTestExtension::getFunctions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \TwigTestExtension::getFunctions()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ IntegrationTest.php, line 149
Class
Code
public function getFunctions() {
return array(
new Twig_SimpleFunction('§', array(
$this,
'§Function',
)),
new Twig_SimpleFunction('safe_br', array(
$this,
'br',
), array(
'is_safe' => array(
'html',
),
)),
new Twig_SimpleFunction('unsafe_br', array(
$this,
'br',
)),
new Twig_SimpleFunction('*_path', array(
$this,
'dynamic_path',
)),
new Twig_SimpleFunction('*_foo_*_bar', array(
$this,
'dynamic_foo',
)),
);
}