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-shipping
Block
Adminhtml
Create
Form.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Shipping\Block\Adminhtml\Create
;
7
14
class
Form
extends
\Magento\Sales\Block\Adminhtml\Order\AbstractOrder
15
{
21
public
function
getOrder
()
22
{
23
return
$this->
getShipment
()->getOrder();
24
}
25
31
public
function
getSource
()
32
{
33
return
$this->
getShipment
();
34
}
35
41
public
function
getShipment
()
42
{
43
return
$this->_coreRegistry->registry(
'current_shipment'
);
44
}
45
49
protected
function
_prepareLayout
()
50
{
51
$this->
addChild
(
'items'
, \
Magento
\Shipping\Block\Adminhtml\
Create
\Items::class);
52
return
parent::_prepareLayout();
53
}
54
58
public
function
getPaymentHtml
()
59
{
60
return
$this->
getChildHtml
(
'order_payment'
);
61
}
62
66
public
function
getItemsHtml
()
67
{
68
return
$this->
getChildHtml
(
'order_items'
);
69
}
70
74
public
function
getSaveUrl
()
75
{
76
return
$this->
getUrl
(
'*/*/save'
, [
'order_id'
=> $this->
getShipment
()->getOrderId()]);
77
}
78
}
Magento\Shipping\Block\Adminhtml\Create\Form\getOrder
getOrder()
Definition:
Form.php:21
Magento\Framework\View\Element\AbstractBlock\addChild
addChild($alias, $block, $data=[])
Definition:
AbstractBlock.php:385
Magento\Shipping\Block\Adminhtml\Create\Form
Definition:
Form.php:14
Magento\Shipping\Block\Adminhtml\Create\Form\getItemsHtml
getItemsHtml()
Definition:
Form.php:66
Magento\Shipping\Block\Adminhtml\Create\Form\_prepareLayout
_prepareLayout()
Definition:
Form.php:49
Magento\Shipping\Block\Adminhtml\Create
Definition:
Create.php:14
Magento\Shipping\Block\Adminhtml\Create\Form\getShipment
getShipment()
Definition:
Form.php:41
Magento\Shipping\Block\Adminhtml\Create
Definition:
Form.php:6
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento
Magento\Shipping\Block\Adminhtml\Create\Form\getPaymentHtml
getPaymentHtml()
Definition:
Form.php:58
Magento\Shipping\Block\Adminhtml\Create\Form\getSource
getSource()
Definition:
Form.php:31
Magento\Framework\View\Element\AbstractBlock\getChildHtml
getChildHtml($alias='', $useCache=true)
Definition:
AbstractBlock.php:497
Magento\Shipping\Block\Adminhtml\Create\Form\getSaveUrl
getSaveUrl()
Definition:
Form.php:74