Beta version
TranslationViewer
class TranslationViewer (View source)
TranslationViewer
Methods
__construct(EntityManager $entityManager, Settings $settingsBag, RouterInterface $router)
TranslationViewer constructor.
EntityRepository|TranslationRepository
getRepository()
No description
array
getTranslationMenuAssignation(Request $request, boolean $absolute = false)
Return available page translation information.
getTranslation()
No description
Details
at line 66
__construct(EntityManager $entityManager, Settings $settingsBag, RouterInterface $router)
TranslationViewer constructor.
at line 76
EntityRepository|TranslationRepository
getRepository()
at line 118
array
getTranslationMenuAssignation(Request $request, boolean $absolute = false)
Return available page translation information.
Be careful, for static routes Roadiz will generate a localized route identifier suffixed with "Locale" text. In case of "force_locale" setting to true, Roadiz will always use suffixed route.
example return value
array (size=3)
'en' =>
array (size=4)
'name' => string 'newsPage'
'url' => string 'http://localhost/news/test'
'locale' => string 'en'
'active' => boolean false
'translation' => string 'English'
'fr' =>
array (size=4)
'name' => string 'newsPageLocale'
'url' => string 'http://localhost/fr/news/test'
'locale' => string 'fr'
'active' => boolean true
'translation' => string 'French'
'es' =>
array (size=4)
'name' => string 'newsPageLocale'
'url' => string 'http://localhost/es/news/test'
'locale' => string 'es'
'active' => boolean false
'translation' => string 'Spanish'