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-inventory-admin-ui
Controller
Adminhtml
Source
Index.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryAdminUi\Controller\Adminhtml\Source
;
9
10
use
Magento\Backend\App\Action
;
11
use
Magento\Backend\Model\View\Result\Page
;
12
use
Magento\Framework\Controller\ResultFactory
;
13
use
Magento\Framework\Controller\ResultInterface
;
14
use
Magento\Framework\App\Action\HttpGetActionInterface
;
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
}
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\InventoryAdminUi\Controller\Adminhtml\Source
Definition:
Edit.php:8
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
Magento\InventoryAdminUi\Controller\Adminhtml\Source\Index\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
Index.php:24
__
__()
Definition:
__.php:13
Magento\Framework\Controller\ResultInterface
Definition:
ResultInterface.php:19
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Backend\App\Action
Definition:
Action.php:17
Magento\InventoryAdminUi\Controller\Adminhtml\Source\Index
Definition:
Index.php:19
Magento\Framework\Controller\ResultFactory\TYPE_PAGE
const TYPE_PAGE
Definition:
ResultFactory.php:27
Magento\Backend\App\Action
Definition:
Context.php:6
Magento\Backend\Model\View\Result\Page
Definition:
Page.php:15