Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Index.php
Go to the documentation of this file.
1 <?php
8 
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,
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 }
__()
Definition: __.php:13
__construct(Context $context, PageFactory $resultPageFactory)
Definition: Index.php:30