We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94085e commit 0ee4cddCopy full SHA for 0ee4cdd
app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider/Block.php
@@ -66,7 +66,7 @@ public function getData(string $blockIdentifier): array
66
}
67
68
$renderedContent = $this->state->emulateAreaCode(
69
- 'frontend',
+ \Magento\Framework\App\Area::AREA_FRONTEND,
70
[$this, 'getRenderedBlockContent'],
71
[$block->getContent()]
72
);
@@ -81,6 +81,8 @@ public function getData(string $blockIdentifier): array
81
82
83
/**
84
+ * Get block data as it rendered on frontend
85
+ *
86
* @param string $blockContent
87
*
88
* @return string
0 commit comments