protected function createMailTranslation(MailInterface $mail, array $config)
    {
        $translation = $this->newMailTranslationInstance($mail);
        $translation->setLocale(ConfigUtil::getValue($config, 'locale'));
        $translation->setLabel(ConfigUtil::getValue($config, 'label'));
        $translation->setDescription(ConfigUtil::getValue($config, 'description'));
        $translation->setSubject(ConfigUtil::getValue($config, 'subject'));
        $translation->setHtmlBody(ConfigUtil::getValue($config, 'html_body'));
        $translation->setBody(ConfigUtil::getValue($config, 'body'));

        return $translation;
    }
protected function createMailTranslation(MailInterface $mail, array $config)
    {
        $translation = $this->newMailTranslationInstance($mail);
        $translation->setLocale(ConfigUtil::getValue($config, 'locale'));
        $translation->setLabel(ConfigUtil::getValue($config, 'label'));
        $translation->setDescription(ConfigUtil::getValue($config, 'description'));
        $translation->setSubject(ConfigUtil::getValue($config, 'subject'));
        $translation->setHtmlBody(ConfigUtil::getValue($config, 'html_body'));
        $translation->setBody(ConfigUtil::getValue($config, 'body'));

        return $translation;
    }
protected function createMailTranslation ( MailInterface $ mail , array $ config ) { $ translation = $ this -> newMailTranslationInstance ( $ mail ) ; $ translation -> setLocale ( ConfigUtil :: getValue ( $ config , 'locale' ) ) ; $ translation -> setLabel ( ConfigUtil :: getValue ( $ config , 'label' ) ) ; $ translation -> setDescription ( ConfigUtil :: getValue ( $ config , 'description' ) ) ; $ translation -> setSubject ( ConfigUtil :: getValue ( $ config , 'subject' ) ) ; $ translation -> setHtmlBody ( ConfigUtil :: getValue ( $ config , 'html_body' ) ) ; $ translation -> setBody ( ConfigUtil :: getValue ( $ config , 'body' ) ) ; return $ translation ; }
Create a mail translation.

@param MailInterface $mail   The mail
@param array         $config The config of mail translation

@return MailTranslationInterface
Create a mail translation .