fireArticlesByCategoryEvents example

$request = Shopware()->Container()->get('front')->Request();
        if (!$request instanceof Enlight_Controller_Request_Request) {
            throw new RuntimeException('Required request not available');
        }

        if (!$criteria instanceof Criteria) {
            $criteria = $this->storeFrontCriteriaFactory->createListingCriteria($request$context);
        }

        $result = $this->getListing($categoryId$context$request$criteria);

        return $this->legacyEventManager->fireArticlesByCategoryEvents($result$categoryId$this);
    }

    /** * @deprecated in 5.6, will be removed in 5.8 without replacement * * Get supplier by id * * Uses the new Supplier Manager * * TestCase: /_tests/Shopware/Tests/Modules/Articles/SuppliersTest.php * * @param int $id - s_articles_supplier.id * * @return array */
Home | Imprint | This part of the site doesn't use cookies.