setSortMode example


    private function hydrateSet(array $data): Set
    {
        $set = new Set();
        $translation = $this->getTranslation($data, '__propertySet', ['groupName' => 'name']);
        $data = array_merge($data$translation);

        $set->setId((int) $data['__propertySet_id']);
        $set->setName($data['__propertySet_name']);
        $set->setComparable((bool) $data['__propertySet_comparable']);
        $set->setSortMode((int) $data['__propertySet_sortmode']);

        if ($data['__propertySetAttribute_id']) {
            $this->attributeHydrator->addAttribute($set$data, 'propertySetAttribute');
        }

        return $set;
    }

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