protected function createLayoutTranslation(LayoutInterface $layout, array $config)
    {
        $translation = $this->newLayoutTranslationInstance($layout);
        $translation->setLocale(ConfigUtil::getValue($config, 'locale'));
        $translation->setLabel(ConfigUtil::getValue($config, 'label'));
        $translation->setDescription(ConfigUtil::getValue($config, 'description'));
        $translation->setBody(ConfigUtil::getValue($config, 'body'));

        return $translation;
    }
protected function createLayoutTranslation(LayoutInterface $layout, array $config)
    {
        $translation = $this->newLayoutTranslationInstance($layout);
        $translation->setLocale(ConfigUtil::getValue($config, 'locale'));
        $translation->setLabel(ConfigUtil::getValue($config, 'label'));
        $translation->setDescription(ConfigUtil::getValue($config, 'description'));
        $translation->setBody(ConfigUtil::getValue($config, 'body'));

        return $translation;
    }
protected function createLayoutTranslation ( LayoutInterface $ layout , array $ config ) { $ translation = $ this -> newLayoutTranslationInstance ( $ layout ) ; $ translation -> setLocale ( ConfigUtil :: getValue ( $ config , 'locale' ) ) ; $ translation -> setLabel ( ConfigUtil :: getValue ( $ config , 'label' ) ) ; $ translation -> setDescription ( ConfigUtil :: getValue ( $ config , 'description' ) ) ; $ translation -> setBody ( ConfigUtil :: getValue ( $ config , 'body' ) ) ; return $ translation ; }
Create a layout translation.

@param LayoutInterface $layout The layout
@param array           $config The config of layout translation

@return LayoutTranslation
Create a layout translation .