Skip to content

Commit 7d7de12

Browse files
committed
PWA-805: Expose localization system / store config from GraphQL
1 parent ef2b9c4 commit 7d7de12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Store/Model/ResourceModel/StoreWebsiteRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public function getStoreByWebsiteId($websiteId)
4848
* Get website store data
4949
*
5050
* @param int $websiteId
51-
* @param int $storeGroupId
5251
* @param bool $available
52+
* @param int|null $storeGroupId
5353
* @return array
5454
*/
55-
public function getWebsiteStores(int $websiteId, int $storeGroupId = null, bool $available = false): array
55+
public function getWebsiteStores(int $websiteId, bool $available = false, int $storeGroupId = null): array
5656
{
5757
$connection = $this->resource->getConnection();
5858
$storeTable = $this->resource->getTableName('store');

app/code/Magento/StoreGraphQl/Model/Resolver/Store/StoreConfigDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getStoreConfigData(StoreInterface $store): array
7878
*/
7979
public function getAvailableStoreConfig(int $websiteId, int $storeGroupId = null): array
8080
{
81-
$websiteStores = $this->storeWebsiteRelation->getWebsiteStores($websiteId, $storeGroupId, true);
81+
$websiteStores = $this->storeWebsiteRelation->getWebsiteStores($websiteId, true, $storeGroupId);
8282
$storeCodes = array_column($websiteStores, 'code');
8383

8484
$storeConfigs = $this->storeConfigManager->getStoreConfigs($storeCodes);

0 commit comments

Comments
 (0)