Skip to content

Commit 3694c65

Browse files
committed
Added model to category data upon the hydration
1 parent 19c1f87 commit 3694c65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Category/Hydrator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public function hydrateCategory(Category $category, $basicFieldsOnly = false) :
5656
$categoryData['id'] = $category->getId();
5757
$categoryData['children'] = [];
5858
$categoryData['available_sort_by'] = $category->getAvailableSortBy();
59+
$categoryData['model'] = $category;
5960
return $this->flattener->flatten($categoryData);
6061
}
6162
}

0 commit comments

Comments
 (0)