You are here

public function Twig_Extension_StringLoader::getFunctions in Translation template extractor 7.3

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

Returns a list of functions to add to the existing list.

Return value

Twig_SimpleFunction[]

Overrides Twig_Extension::getFunctions

File

vendor/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,
    )),
  );
}