setTerritory example

use Shopware\Bundle\StoreFrontBundle\Struct\Locale;

class LocaleHydrator extends Hydrator
{
    public function hydrate($data)
    {
        $locale = new Locale();
        $locale->setId((int) $data['__locale_id']);
        $locale->setLocale($data['__locale_locale']);
        $locale->setLanguage($data['__locale_language']);
        $locale->setTerritory($data['__locale_territory']);

        return $locale;
    }
}
Home | Imprint | This part of the site doesn't use cookies.