You are here

class Twig_Extension_StringLoader 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

Hierarchy

Expanded class hierarchy of Twig_Extension_StringLoader

File

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

View source
class Twig_Extension_StringLoader extends Twig_Extension {
  public function getFunctions() {
    return array(
      new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array(
        'needs_environment' => true,
      )),
    );
  }
  public function getName() {
    return 'string_loader';
  }

}

Members