mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
47 lines
895 B
PHP
47 lines
895 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
namespace Magento\Shipping\Block\Adminhtml\View;
|
|
|
|
/**
|
|
* Adminhtml sales item renderer
|
|
*
|
|
* @api
|
|
* @since 100.0.2
|
|
*/
|
|
class Items extends \Magento\Sales\Block\Adminhtml\Items\AbstractItems
|
|
{
|
|
/**
|
|
* Retrieve shipment model instance
|
|
*
|
|
* @return \Magento\Sales\Model\Order\Shipment
|
|
*/
|
|
public function getShipment()
|
|
{
|
|
return $this->_coreRegistry->registry('current_shipment');
|
|
}
|
|
|
|
/**
|
|
* Retrieve invoice order
|
|
*
|
|
* @return \Magento\Sales\Model\Order
|
|
*/
|
|
public function getOrder()
|
|
{
|
|
return $this->getShipment()->getOrder();
|
|
}
|
|
|
|
/**
|
|
* Retrieve source
|
|
*
|
|
* @return \Magento\Sales\Model\Order\Shipment
|
|
*/
|
|
public function getSource()
|
|
{
|
|
return $this->getShipment();
|
|
}
|
|
}
|