TranslationsExtension
class TranslationsExtension extends Twig_Extension
Methods
Constructor
{@inheritdoc}
Translate product name
Translate product permalink
Translate product short description
Translate product description
Translate product seo title
Translate product seo description
Translate product seo keywords
Translate category name
Translate category description
Translate category permalink
Translate category meta title
Translate category meta description
Translate category meta keywords
Translate attribute name
Translate attribute value
Translate attribute set
Translate brand name
Translate brand permalink
Translate brand seo title
Translate brand seo description
Translate brand seo keywords
Details
at line 28
__construct(TranslatorInterface $translator)
Constructor
at line 36
getFunctions()
{@inheritdoc}
at line 71
string
getProductTranslation(int $id, string|null $locale = null)
Translate product name
at line 84
string
getProductPermalinkTranslation(int $id, string|null $locale = null)
Translate product permalink
at line 97
string
getProductShortDescriptionTranslation(int $id, string|null $locale = null)
Translate product short description
at line 110
string
getProductDescriptionHtmlTranslation(int $id, string|null $locale = null)
Translate product description
at line 123
string
getProductSeoTitleTranslation(int $id, string|null $locale = null)
Translate product seo title
at line 136
string
getProductSeoDescriptionTranslation(int $id, string|null $locale = null)
Translate product seo description
at line 149
string
getProductSeoKeywordsTranslation(int $id, string|null $locale = null)
Translate product seo keywords
at line 162
string
getCategoryTranslation(int $id, string|null $locale = null)
Translate category name
at line 175
string
getCategoryDescriptionTranslation(int $id, string|null $locale = null)
Translate category description
at line 188
string
getCategoryPermalinkTranslation(int $id, string|null $locale = null)
Translate category permalink
at line 201
string
getCategoryMetaTitleTranslation(int $id, string|null $locale = null)
Translate category meta title
at line 214
string
getCategoryMetaDescriptionTranslation(int $id, string|null $locale = null)
Translate category meta description
at line 227
string
getCategoryMetaKeywordsTranslation(int $id, string|null $locale = null)
Translate category meta keywords
at line 240
string
getAttributeTranslation(int $id, string|null $locale = null)
Translate attribute name
at line 253
string
getAttributeValueTranslation(int $id, string|null $locale = null)
Translate attribute value
at line 266
string
getAttributeSetTranslation(int $id, string|null $locale = null)
Translate attribute set
at line 279
string
getBrandTranslation(int $id, string|null $locale = null)
Translate brand name
at line 292
string
getBrandPermalinkTranslation(int $id, string|null $locale = null)
Translate brand permalink
at line 305
string
getBrandSeoTitleTranslation(int $id, string|null $locale = null)
Translate brand seo title
at line 318
string
getBrandSeoDescriptionTranslation(int $id, string|null $locale = null)
Translate brand seo description
at line 331
string
getBrandSeoKeywordsTranslation(int $id, string|null $locale = null)
Translate brand seo keywords