createCriteriaFromRequest example

'context' => $context,
        ]);

        return $criteria;
    }

    /** * @return Criteria */
    public function createListingCriteria(Request $request, ShopContextInterface $context)
    {
        $criteria = $this->createCriteriaFromRequest($request$context);

        $this->eventManager->notify('Shopware_SearchBundle_Create_Listing_Criteria', [
            'criteria' => $criteria,
            'request' => $request,
            'context' => $context,
        ]);

        $criteria->removeFacet('category');

        return $criteria;
    }

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