File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
app/code/Magento/PageBuilder/Plugin/Result Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 9
9
namespace Magento \PageBuilder \Plugin \Result ;
10
10
11
11
use Magento \Framework \App \ResponseInterface ;
12
- use Magento \Framework \View \Element \Context ;
13
12
use Magento \Framework \View \Result \Page as ResultPage ;
14
13
15
14
class Page
16
15
{
17
- /**
18
- * @var \Magento\Framework\View\Element\Context
19
- */
20
- private $ context ;
21
-
22
- /**
23
- * @param Context $context
24
- */
25
- public function __construct (
26
- Context $ context
27
- ) {
28
- $ this ->context = $ context ;
29
- }
30
-
31
16
/**
32
17
* @param ResultPage $subject
33
18
* @param ResponseInterface $response
@@ -36,7 +21,7 @@ public function __construct(
36
21
public function beforeRenderResult (
37
22
ResultPage $ subject ,
38
23
ResponseInterface $ response
39
- ) {
24
+ ) : array {
40
25
// Apply the updated layout handles classes to the body when using our full width variants
41
26
if ($ subject ->getConfig ()->getPageLayout () == 'product-full-width ' ) {
42
27
$ subject ->getConfig ()->addBodyClass ('page-layout-1column ' );
You can’t perform that action at this time.
0 commit comments