ProductListingStruct example


        return 'product-listing';
    }

    public function collect(CmsSlotEntity $slot, ResolverContext $resolverContext): ?CriteriaCollection
    {
        return null;
    }

    public function enrich(CmsSlotEntity $slot, ResolverContext $resolverContext, ElementDataCollection $result): void
    {
        $data = new ProductListingStruct();
        $slot->setData($data);

        $request = $resolverContext->getRequest();
        $context = $resolverContext->getSalesChannelContext();

        $this->restrictFilters($slot$request);

        if ($this->isCustomSorting($slot)) {
            $this->restrictSortings($request$slot);
            $this->addDefaultSorting($request$slot);
        }

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