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
6 declare(strict_types=1);
7 
9 
15 
19 class Index extends Action implements HttpGetActionInterface
20 {
24  const ADMIN_RESOURCE = 'Magento_InventoryApi::source';
25 
29  public function execute(): ResultInterface
30  {
32  $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
33  $resultPage->setActiveMenu('Magento_InventoryApi::source')
34  ->addBreadcrumb(__('Sources'), __('List'));
35  $resultPage->getConfig()->getTitle()->prepend(__('Manage Sources'));
36 
37  return $resultPage;
38  }
39 }
__()
Definition: __.php:13