Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewStore.php
Go to the documentation of this file.
1 <?php
8 
9 class NewStore extends \Magento\Backend\Controller\Adminhtml\System\Store
10 {
14  public function execute()
15  {
16  if (!$this->_coreRegistry->registry('store_type')) {
17  $this->_coreRegistry->register('store_type', 'store');
18  }
19  $this->_coreRegistry->register('store_action', 'add');
21  $resultForward = $this->resultForwardFactory->create();
22  return $resultForward->forward('editStore');
23  }
24 }