Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Form.php
Go to the documentation of this file.
1 <?php
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 }