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
Adminhtml
Shipment
AbstractShipment
Index.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment
;
8
9
use
Magento\Backend\App\Action\Context
;
10
use
Magento\Framework\View\Result\PageFactory
;
11
12
abstract
class
Index
extends
\Magento\Backend\App\Action
13
{
19
const
ADMIN_RESOURCE
=
'Magento_Sales::shipment'
;
20
24
protected
$resultPageFactory
;
25
30
public
function
__construct
(
31
Context
$context,
32
PageFactory
$resultPageFactory
33
) {
34
parent::__construct($context);
35
$this->resultPageFactory =
$resultPageFactory
;
36
}
37
43
public
function
execute
()
44
{
46
$resultPage = $this->resultPageFactory->create();
47
$resultPage->setActiveMenu(
'Magento_Sales::sales_shipment'
)
48
->addBreadcrumb(
__
(
'Sales'
),
__
(
'Sales'
))
49
->addBreadcrumb(
__
(
'Shipments'
),
__
(
'Shipments'
));
50
$resultPage->getConfig()->getTitle()->prepend(
__
(
'Shipments'
));
51
52
return
$resultPage;
53
}
54
}
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment\Index
Definition:
Index.php:12
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment
Definition:
Index.php:7
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment\Index\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
Index.php:19
__
__()
Definition:
__.php:13
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\View\Result\PageFactory
Definition:
PageFactory.php:19
Magento\Backend\App\Action
Definition:
Action.php:17
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment\Index\__construct
__construct(Context $context, PageFactory $resultPageFactory)
Definition:
Index.php:30
Magento\Backend\App\Action\Context
Definition:
Context.php:25
Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment\Index\$resultPageFactory
$resultPageFactory
Definition:
Index.php:24