ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 {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
} 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 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[]
}

Implements Twig_ExtensionInterface.

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 ( )

{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 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[]
}

Implements Twig_ExtensionInterface.

Definition at line 17 of file I18n.php.


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