ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Extensions_Extension_I18n Class Reference
+ Inheritance diagram for Twig_Extensions_Extension_I18n:
+ Collaboration diagram for Twig_Extensions_Extension_I18n:

Public Member Functions

 getTokenParsers ()
 {Returns the token parser instances to add to the existing list.
Returns
Twig_TokenParserInterface[]
} More...
 
 getFilters ()
 {Returns a list of filters to add to the existing list.
Returns
Twig_SimpleFilter[]
} More...
 
 getName ()
 {
Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally
} 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 ()
 
 initRuntime (Twig_Environment $environment)
 Initializes the runtime environment. More...
 
 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 ()
 Returns a list of global variables to add to the existing list. More...
 
 getName ()
 Returns the name of the extension. More...
 

Detailed Description

Definition at line 12 of file I18n.php.

Member Function Documentation

◆ getFilters()

Twig_Extensions_Extension_I18n::getFilters ( )

{Returns a list of filters to add to the existing list.

Returns
Twig_SimpleFilter[]
}

Reimplemented from Twig_Extension.

Reimplemented in JaimePerez\TwigConfigurableI18n\Twig\Extensions\Extension\I18n.

Definition at line 25 of file I18n.php.

26 {
27 return array(
28 new Twig_SimpleFilter('trans', 'gettext'),
29 );
30 }
Represents a template filter.

◆ getName()

Twig_Extensions_Extension_I18n::getName ( )

{

Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally
}

Reimplemented from Twig_Extension.

Definition at line 35 of file I18n.php.

36 {
37 return 'i18n';
38 }

◆ getTokenParsers()

Twig_Extensions_Extension_I18n::getTokenParsers ( )

{Returns the token parser instances to add to the existing list.

Returns
Twig_TokenParserInterface[]
}

Reimplemented from Twig_Extension.

Reimplemented in JaimePerez\TwigConfigurableI18n\Twig\Extensions\Extension\I18n.

Definition at line 17 of file I18n.php.


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