getShipment()->getOrder(); } /** * Retrieve source * * @return \Magento\Sales\Model\Order\Shipment */ public function getSource() { return $this->getShipment(); } /** * Retrieve shipment model instance * * @return \Magento\Sales\Model\Order\Shipment */ public function getShipment() { return $this->_coreRegistry->registry('current_shipment'); } /** * @return \Magento\Framework\View\Element\AbstractBlock */ protected function _prepareLayout() { $this->addChild('items', \Magento\Shipping\Block\Adminhtml\Create\Items::class); return parent::_prepareLayout(); } /** * @return string */ public function getPaymentHtml() { return $this->getChildHtml('order_payment'); } /** * @return string */ public function getItemsHtml() { return $this->getChildHtml('order_items'); } /** * @return string */ public function getSaveUrl() { return $this->getUrl('*/*/save', ['order_id' => $this->getShipment()->getOrderId()]); } }