getSearchCriteria example

'categoryIds' => $categoryIds,
        ]);

        return $criteria;
    }

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

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

        return $criteria;
    }

    /** * @return Criteria */
Home | Imprint | This part of the site doesn't use cookies.