コード例 #1
0
 /**
  * @inheritdoc
  */
 public function getProductsCategories(array $products, Struct\ShopContextInterface $context)
 {
     $categories = $this->categoryGateway->getProductsCategories($products, $context);
     $result = [];
     foreach ($categories as $key => $productCategories) {
         $result[$key] = $this->filterValidCategories($productCategories, $context);
     }
     return $result;
 }
コード例 #2
0
ファイル: CategoryService.php プロジェクト: Goucher/shopware
 /**
  * @inheritdoc
  */
 public function getList($ids, Struct\ShopContextInterface $context)
 {
     $categories = $this->categoryGateway->getList($ids, $context);
     return $this->filterValidCategories($categories, $context);
 }