class TranslationExtension extends Twig_Extension (View source)

Extension that allow render document images

Methods

__construct(RequestStack $requestStack, TranslationViewer $translationViewer)

TranslationExtension constructor.

getName()

No description

getFilters()

No description

array
getMenuAssignation(Translation $translation = null, bool $absolute = false)

No description

string
getCountryName(string $iso, string $locale = 'en')

No description

Details

__construct(RequestStack $requestStack, TranslationViewer $translationViewer)

TranslationExtension constructor.

Parameters

RequestStack $requestStack
TranslationViewer $translationViewer

getName()

getFilters()

array getMenuAssignation(Translation $translation = null, bool $absolute = false)

Parameters

Translation $translation
bool $absolute

Return Value

array

string getCountryName(string $iso, string $locale = 'en')

Parameters

string $iso
string $locale

Return Value

string