You are here

public function Twig_Extension_StringLoader::getFunctions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Extension/StringLoader.php \Twig_Extension_StringLoader::getFunctions()

File

vendor/twig/twig/lib/Twig/Extension/StringLoader.php, line 13

Class

Twig_Extension_StringLoader

Code

public function getFunctions() {
  return array(
    new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array(
      'needs_environment' => true,
    )),
  );
}