Skip to content

Commit 86341db

Browse files
author
Leonid Poluianov
committed
MC-32792: Get Categories server side API operation to improve in 2.4
1 parent f7d7116 commit 86341db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\Abstrac
9090
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
9191
* @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
9292
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
93+
* @param Visibility|null $catalogProductVisibility
9394
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
9495
*/
9596
public function __construct(
@@ -507,6 +508,8 @@ public function getProductTable()
507508
}
508509

509510
/**
511+
* Get products count using catalog_category_entity table
512+
*
510513
* @param Category $item
511514
* @param string $websiteId
512515
* @return int
@@ -547,6 +550,7 @@ private function getProductsCountFromCategoryTable(Category $item, string $websi
547550
* Get query for retrieve count of products per category
548551
*
549552
* @param array $categoryIds
553+
* @param bool $addVisibilityFilter
550554
* @return Select
551555
*/
552556
private function getProductsCountQuery(array $categoryIds, $addVisibilityFilter = true): Select

0 commit comments

Comments
 (0)