eZPublishCommunityProject  2013.9
eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension Class Reference

Twig extension for eZ Publish legacy. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension:
+ Collaboration diagram for eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension:

Public Member Functions

 __construct (LegacyEngine $legacyEngine)
 
 getName ()
 Returns the name of the extension. More...
 
 getTokenParsers ()
 
 renderTemplate ($tplPath, array $params=array())
 Renders a legacy template. More...
 

Private Attributes

 $legacyEngine
 

Detailed Description

Twig extension for eZ Publish legacy.

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension::__construct ( LegacyEngine  $legacyEngine)

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension::getName ( )

Returns the name of the extension.

Returns
string The extension name
eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension::getTokenParsers ( )
eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension::renderTemplate (   $tplPath,
array  $params = array() 
)

Renders a legacy template.

Parameters
string$tplPathPath to template (i.e. "design:setup/info.tpl")
array$paramsParameters to pass to template. Consists of a hash with key as the variable name available in the template.
Returns
string The legacy template result
Deprecated:
since 5.1

Member Data Documentation

eZ\Publish\Core\MVC\Legacy\Templating\Twig\Extension\LegacyExtension::$legacyEngine
private

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