Conditions | 1 |
Paths | 1 |
Total Lines | 33 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function execute() |
||
21 | { |
||
22 | $this->_coreRegistry->register( |
||
|
|||
23 | RegistryConstants::CURRENT_SUB_SELLER_FORM_DATA, |
||
24 | $this->_objectManager->get(\Magento\Backend\Model\Session::class)->getFormData(true) |
||
25 | ); |
||
26 | $subSellerType = (int) $this->getRequest()->getParam('type'); |
||
27 | $this->_coreRegistry->register(RegistryConstants::CURRENT_SUB_SELLER_TYPE, $subSellerType); |
||
28 | |||
29 | $resultPage = $this->initResultPage(); |
||
30 | $layout = $resultPage->getLayout(); |
||
31 | $toolbarSaveBlock = $layout->createBlock(\Getnet\SubSellerMagento\Block\Adminhtml\SubSeller\Toolbar\Save::class) |
||
32 | ->assign('header', __('Add New Sub Seller')) |
||
33 | ->assign( |
||
34 | 'form', |
||
35 | $layout->createBlock( |
||
36 | \Getnet\SubSellerMagento\Block\Adminhtml\SubSeller\Form::class, |
||
37 | 'sub_seller_form' |
||
38 | ) |
||
39 | ); |
||
40 | |||
41 | $resultPage->addBreadcrumb( |
||
42 | __('Manage Sub Seller'), |
||
43 | __('Manage Sub Seller'), |
||
44 | $this->getUrl('subseller/subseller') |
||
45 | ) |
||
46 | ->addBreadcrumb(__('New Sub Seller'), __('New Sub Seller')) |
||
47 | ->addContent($toolbarSaveBlock); |
||
48 | |||
49 | $resultPage->getConfig()->getTitle()->prepend(__('Getnet')); |
||
50 | $resultPage->getConfig()->getTitle()->prepend(__('New Sub Seller')); |
||
51 | |||
52 | return $resultPage; |
||
53 | } |
||
55 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.