Skip to content

Commit 978dbd4

Browse files
committed
MC-2369: Implement full width layout for category
- Remove unused depdency on $context - Add return type array to before plugin function
1 parent 65db0a7 commit 978dbd4

File tree

1 file changed

+1
-16
lines changed
  • app/code/Magento/PageBuilder/Plugin/Result

1 file changed

+1
-16
lines changed

app/code/Magento/PageBuilder/Plugin/Result/Page.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,10 @@
99
namespace Magento\PageBuilder\Plugin\Result;
1010

1111
use Magento\Framework\App\ResponseInterface;
12-
use Magento\Framework\View\Element\Context;
1312
use Magento\Framework\View\Result\Page as ResultPage;
1413

1514
class Page
1615
{
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-
3116
/**
3217
* @param ResultPage $subject
3318
* @param ResponseInterface $response
@@ -36,7 +21,7 @@ public function __construct(
3621
public function beforeRenderResult(
3722
ResultPage $subject,
3823
ResponseInterface $response
39-
) {
24+
) : array {
4025
// Apply the updated layout handles classes to the body when using our full width variants
4126
if ($subject->getConfig()->getPageLayout() == 'product-full-width') {
4227
$subject->getConfig()->addBodyClass('page-layout-1column');

0 commit comments

Comments
 (0)