diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php index ab39e33bddb95..e532a30c98772 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php @@ -83,9 +83,12 @@ public function __construct( } /** + * Returns categories tree starting from parent $rootCategoryId + * * @param ResolveInfo $resolveInfo * @param int $rootCategoryId * @return array + * @throws \Exception */ public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array { @@ -107,6 +110,8 @@ public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array } /** + * Iterates through category tree + * * @param \Iterator $iterator * @return array */ @@ -129,6 +134,8 @@ private function processTree(\Iterator $iterator) : array } /** + * Joins EAV attributes recursively + * * @param Collection $collection * @param FieldNode $fieldNode * @return void