File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
app/code/Magento/Catalog/Controller/Product Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Catalog \Controller \Product ;
7
7
8
8
use Magento \Catalog \Api \ProductRepositoryInterface ;
9
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
9
10
use Magento \Framework \Data \Form \FormKey \Validator ;
10
11
use Magento \Framework \View \Result \PageFactory ;
11
12
15
16
* @SuppressWarnings(PHPMD.LongVariable)
16
17
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
17
18
*/
18
- abstract class Compare extends \Magento \Framework \App \Action \Action
19
+ abstract class Compare extends \Magento \Framework \App \Action \Action implements HttpGetActionInterface
19
20
{
20
21
/**
21
22
* Customer id
@@ -139,4 +140,15 @@ public function setCustomerId($customerId)
139
140
$ this ->_customerId = $ customerId ;
140
141
return $ this ;
141
142
}
143
+
144
+ /**
145
+ * @inheritdoc
146
+ */
147
+ public function execute ()
148
+ {
149
+ $ resultRedirect = $ this ->resultRedirectFactory ->create ();
150
+ $ resultRedirect ->setPath ('catalog/product_compare ' );
151
+
152
+ return $ resultRedirect ;
153
+ }
142
154
}
You can’t perform that action at this time.
0 commit comments