Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-sales
Controller
Order
History.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Controller\Order
;
8
9
use
Magento\Framework\App\Action\HttpGetActionInterface
as HttpGetActionInterface;
10
use
Magento\Sales\Controller\OrderInterface
;
11
use
Magento\Framework\App\Action\Context
;
12
use
Magento\Framework\View\Result\PageFactory
;
13
14
class
History
extends
\Magento\Framework\App\Action\Action
implements
OrderInterface
, HttpGetActionInterface
15
{
19
protected
$resultPageFactory
;
20
25
public
function
__construct
(
26
Context
$context,
27
PageFactory
$resultPageFactory
28
) {
29
$this->resultPageFactory =
$resultPageFactory
;
30
parent::__construct($context);
31
}
32
38
public
function
execute
()
39
{
41
$resultPage = $this->resultPageFactory->create();
42
$resultPage->getConfig()->getTitle()->set(
__
(
'My Orders'
));
43
44
$block
= $resultPage->getLayout()->getBlock(
'customer.account.link.back'
);
45
if
(
$block
) {
46
$block
->setRefererUrl($this->
_redirect
->getRefererUrl());
47
}
48
return
$resultPage;
49
}
50
}
Magento\Framework\App\Action\Action\_redirect
_redirect($path, $arguments=[])
Definition:
Action.php:167
Magento\Sales\Controller\Order\History
Definition:
History.php:14
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Sales\Controller\Order
Definition:
Creditmemo.php:7
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\View\Result\PageFactory
Definition:
PageFactory.php:19
Magento\Sales\Controller\Order\History\__construct
__construct(Context $context, PageFactory $resultPageFactory)
Definition:
History.php:25
Magento\Sales\Controller\OrderInterface
Definition:
OrderInterface.php:15
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Framework\App\Action\Action
Definition:
Action.php:25
Magento\Sales\Controller\Order\History\$resultPageFactory
$resultPageFactory
Definition:
History.php:19