ShopPage example

public function __construct(AttributeHydrator $attributeHydrator)
    {
        $this->attributeHydrator = $attributeHydrator;
    }

    /** * @return ShopPage */
    public function hydrate(array $data)
    {
        $page = new ShopPage();

        $translation = $this->getTranslation($data, '__page');
        $data = array_merge($data$translation);

        $this->assignData($page$data);

        return $page;
    }

    /** * @param array<string, mixed> $data */
Home | Imprint | This part of the site doesn't use cookies.