Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Link.php
Go to the documentation of this file.
1 <?php
7 
15 {
21  protected $_coreRegistry;
22 
28  protected $_shippingData;
29 
36  public function __construct(
37  \Magento\Framework\View\Element\Template\Context $context,
38  \Magento\Framework\Registry $registry,
39  \Magento\Shipping\Helper\Data $shippingData,
40  array $data = []
41  ) {
42  $this->_shippingData = $shippingData;
43  $this->_coreRegistry = $registry;
44  parent::__construct($context, $data);
45  }
46 
51  public function getWindowUrl($model)
52  {
53  return $this->_shippingData->getTrackingPopupUrlBySalesModel($model);
54  }
55 
61  public function getOrder()
62  {
63  return $this->_coreRegistry->registry('current_order');
64  }
65 }