getStreamIdOfCategory example

return $this->articleRepository;
    }

    /** * @throws Exception */
    private function createProductNavigationCriteria(
        int $categoryId,
        ShopContextInterface $context,
        Enlight_Controller_Request_RequestHttp $request
    ): Criteria {
        $streamId = $this->getStreamIdOfCategory($categoryId);
        if ($streamId === null) {
            return $this->storeFrontCriteriaFactory->createProductNavigationCriteria(
                $request,
                $context,
                $categoryId
            );
        }

        $factory = Shopware()->Container()->get(CriteriaFactoryInterface::class);
        $criteria = $factory->createCriteria($request$context);
        $criteria->limit(null);

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