6 declare(strict_types=1);
28 private $categoryTree;
36 $this->categoryTree = $categoryTree;
44 private function getCategoryId(array $args) : int
46 if (!isset($args[
'id'])) {
50 return (
int)$args[
'id'];
64 if (!empty($categoriesTree)) {
65 return current($categoriesTree);
__construct(\Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree $categoryTree)
foreach( $_productCollection as $_product)() ?>" class $info
resolve(Field $field, $context, ResolveInfo $info, array $value=null, array $args=null)