PHP Class Sulu\Bundle\WebsiteBundle\EventListener\TranslatorEventListener

Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator )
setLocaleOnPreviewPreRender ( PreRenderEvent $event ) Set locale to translator.

Method Details

__construct() public method

public __construct ( Symfony\Component\Translation\TranslatorInterface $translator )
$translator Symfony\Component\Translation\TranslatorInterface

setLocaleOnPreviewPreRender() public method

Set locale to translator.
public setLocaleOnPreviewPreRender ( PreRenderEvent $event )
$event Sulu\Bundle\PreviewBundle\Preview\Events\PreRenderEvent