Skip to content

Commit 9505edc

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-35527: Rename getDefaultRedirect method to getDefaultResult
- Description changed for getDefaultResult method in ActionInterface and AbstractAction;
1 parent 0fa0717 commit 9505edc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

dev/tests/integration/testsuite/Magento/Reports/Model/Resource/Report/Product/Viewed/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function tableForPeriodDataProvider()
121121
],
122122
[
123123
'period' => 'month',
124-
'table' => 'report_viewed_product_aggregated_yearly',
124+
'table' => 'report_viewed_product_aggregated_monthly',
125125
'date_from' => null,
126126
'date_to' => $dateNow,
127127
],

lib/internal/Magento/Framework/App/Action/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getResponse()
5656
}
5757

5858
/**
59-
* Redirect user to the previous or main page
59+
* Create redirect object, which can be used to redirect user to previous or main page
6060
*
6161
* @return \Magento\Framework\Controller\ResultInterface
6262
*/

lib/internal/Magento/Framework/App/ActionInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function getResponse();
3838
/**
3939
* Get default result object
4040
*
41+
* Method is invoked to return default result of action execution within controllers.
42+
* Can be used to generate ‘execute’ method result in action controllers.
43+
*
4144
* @return \Magento\Framework\Controller\ResultInterface
4245
*/
4346
public function getDefaultResult();

0 commit comments

Comments
 (0)