ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Extension_StringLoader Class Reference

More...

+ Inheritance diagram for Twig_Extension_StringLoader:
+ Collaboration diagram for Twig_Extension_StringLoader:

Public Member Functions

 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getName ()
 Returns the name of the extension. More...
 
- Public Member Functions inherited from Twig_Extension
 initRuntime (Twig_Environment $environment)
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getGlobals ()
 
 getName ()
 

Detailed Description

Definition at line 15 of file StringLoader.php.

Member Function Documentation

◆ getFunctions()

Twig_Extension_StringLoader::getFunctions ( )

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

Returns
Twig_SimpleFunction[]

Implements Twig_ExtensionInterface.

Definition at line 17 of file StringLoader.php.

18  {
19  return array(
20  new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array('needs_environment' => true)),
21  );
22  }
Represents a template function.

◆ getName()

Twig_Extension_StringLoader::getName ( )

Returns the name of the extension.

Returns
string The extension name
Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally

Implements Twig_ExtensionInterface.

Definition at line 24 of file StringLoader.php.

25  {
26  return 'string_loader';
27  }

The documentation for this class was generated from the following file: