eZ Publish 5.1+ comes with a Twig helper as a global variable named
Returns the current siteaccess.
|Returns the root Location object|
|Returns the requested URI string (also known as semanticPathInfo).|
|Returns the "system" URI string. System URI is the URI for internal content controller. If current route is not an URLAlias, then the current Pathinfo is returned.|
|Returns the view parameters as a hash.|
|Returns the view parameters as a string.|
|Returns legacy information.|
|Returns the translation SiteAccess for a given language, or null if it cannot be found.|
|Returns the list of available languages.|
|Returns the config resolver.|
ezpublish.legacy property returns an object of type ParameterBag, which is a container for key/value pairs, and contains additional properties to retrieve/handle legacy information.