protected function getTranslatedLayout(MailInterface $mail)
    {
        $layout = $mail->getLayout();

        if (null !== $layout) {
            $layout = TranslationUtil::translateLayout($layout, $this->getLocale(), $this->translator);
        }

        return $layout;
    }
protected function getTranslatedLayout(MailInterface $mail)
    {
        $layout = $mail->getLayout();

        if (null !== $layout) {
            $layout = TranslationUtil::translateLayout($layout, $this->getLocale(), $this->translator);
        }

        return $layout;
    }
protected function getTranslatedLayout ( MailInterface $ mail ) { $ layout = $ mail -> getLayout ( ) ; if ( null !== $ layout ) { $ layout = TranslationUtil :: translateLayout ( $ layout , $ this -> getLocale ( ) , $ this -> translator ) ; } return $ layout ; }
Get the translated layout of mail.

@param MailInterface $mail The mail

@return null|LayoutInterface
Get the translated layout of mail .