public function getTranslatedLayout($layout)
    {
        $template = $this->layoutLoader->load($layout);
        $template = TranslationUtil::translateLayout($template, $this->getTemplater()->getLocale(), $this->translator);

        if (!$template instanceof TwigLayout) {
            $msg = 'The "%s" layout is not a twig layout';

            throw new InvalidArgumentException(sprintf($msg, $layout));
        }

        return $template;
    }
public function getTranslatedLayout($layout)
    {
        $template = $this->layoutLoader->load($layout);
        $template = TranslationUtil::translateLayout($template, $this->getTemplater()->getLocale(), $this->translator);

        if (!$template instanceof TwigLayout) {
            $msg = 'The "%s" layout is not a twig layout';

            throw new InvalidArgumentException(sprintf($msg, $layout));
        }

        return $template;
    }
public function getTranslatedLayout ( $ layout ) { $ template = $ this -> layoutLoader -> load ( $ layout ) ; $ template = TranslationUtil :: translateLayout ( $ template , $ this -> getTemplater ( ) -> getLocale ( ) , $ this -> translator ) ; if ( ! $ template instanceof TwigLayout ) { $ msg = 'The "%s" layout is not a twig layout' ; throw new InvalidArgumentException ( sprintf ( $ msg , $ layout ) ) ; } return $ template ; }
Get the translated layout.

@param string $layout The name of layout

@throws UnknownLayoutException   When the layout template does not exist
@throws InvalidArgumentException When the layout is not a twig layout

@return TwigLayout
Get the translated layout .