getTranslationResource example


        }
    }

    /** * Translate the whole product array. * * @return array */
    protected function translateArticle(array $data, Shop $shop)
    {
        $this->getTranslationResource()->setResultMode(
            self::HYDRATE_ARRAY
        );
        $translation = $this->getSingleTranslation(
            'article',
            $shop->getId(),
            $data['id']
        );

        if (!empty($translation)) {
            $data = $this->mergeTranslation($data$translation['data']);

            
Home | Imprint | This part of the site doesn't use cookies.