Skip to content

Commit 0ee4cdd

Browse files
committed
Magento 2.3.2 - PWA - graphQl fetching Issue for phtml file called in static block #960
1 parent b94085e commit 0ee4cdd

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider

1 file changed

+3
-1
lines changed

app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider/Block.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getData(string $blockIdentifier): array
6666
}
6767

6868
$renderedContent = $this->state->emulateAreaCode(
69-
'frontend',
69+
\Magento\Framework\App\Area::AREA_FRONTEND,
7070
[$this, 'getRenderedBlockContent'],
7171
[$block->getContent()]
7272
);
@@ -81,6 +81,8 @@ public function getData(string $blockIdentifier): array
8181
}
8282

8383
/**
84+
* Get block data as it rendered on frontend
85+
*
8486
* @param string $blockContent
8587
*
8688
* @return string

0 commit comments

Comments
 (0)