File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
CmsGraphQl/Model/Resolver/DataProvider Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function getData(string $blockIdentifier): array
56
56
);
57
57
}
58
58
59
- $ renderedContent = $ this ->widgetFilter ->filter ($ block ->getContent ());
59
+ $ renderedContent = $ this ->widgetFilter ->filterDirective ($ block ->getContent ());
60
60
61
61
$ blockData = [
62
62
BlockInterface::BLOCK_ID => $ block ->getId (),
Original file line number Diff line number Diff line change 1
- <?php declare (strict_types= 1 );
1
+ <?php
2
2
/**
3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Widget \Model \Template ;
7
9
8
10
/**
@@ -26,16 +28,18 @@ public function widgetDirective($construction)
26
28
}
27
29
28
30
/**
31
+ * Filter the string as template with frontend area emulation
32
+ *
29
33
* @param string $value
30
34
*
31
35
* @return string
32
36
* @throws \Exception
33
37
*/
34
- public function filter ($ value ) : string
38
+ public function filterDirective ($ value ) : string
35
39
{
36
40
return $ this ->_appState ->emulateAreaCode (
37
41
\Magento \Framework \App \Area::AREA_FRONTEND ,
38
- [$ this , 'parent:: filter ' ],
42
+ [$ this , 'filter ' ],
39
43
[$ value ]
40
44
);
41
45
}
You can’t perform that action at this time.
0 commit comments