Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewAction.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
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 }
__()
Definition: __.php:13