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
Stock
NewAction.php
Go to the documentation of this file.
1
<?php
7
declare(strict_types=1);
8
9
namespace
Magento\InventoryAdminUi\Controller\Adminhtml\Stock
;
10
11
use
Magento\Backend\App\Action
;
12
use
Magento\Backend\Model\View\Result\Page
;
13
use
Magento\Framework\Controller\ResultFactory
;
14
use
Magento\Framework\Controller\ResultInterface
;
15
use
Magento\Framework\App\Action\HttpGetActionInterface
;
16
20
class
NewAction
extends
Action
implements
HttpGetActionInterface
21
{
25
const
ADMIN_RESOURCE
=
'Magento_InventoryApi::stock'
;
26
30
public
function
execute
():
ResultInterface
31
{
33
$resultPage = $this->resultFactory->create(
ResultFactory::TYPE_PAGE
);
34
$resultPage->setActiveMenu(
'Magento_InventoryApi::stock'
);
35
$resultPage->getConfig()->getTitle()->prepend(
__
(
'New Stock'
));
36
37
return
$resultPage;
38
}
39
}
Magento\InventoryAdminUi\Controller\Adminhtml\Stock\NewAction\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
NewAction.php:25
Magento\InventoryAdminUi\Controller\Adminhtml\Stock\NewAction
Definition:
NewAction.php:20
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
__
__()
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\Stock
Definition:
Delete.php:8
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