15 class Link extends \Magento\Framework\View\Element\Html\Link\Current
30 \
Magento\Framework\
App\DefaultPathInterface $defaultPath,
34 parent::__construct($context, $defaultPath,
$data);
43 private function getOrder()
45 return $this->_registry->registry(
'current_order');
55 return $this->
getUrl($this->getPath(), [
'order_id' => $this->getOrder()->getId()]);
66 && method_exists($this->getOrder(),
'has' . $this->getKey())
67 && !$this->getOrder()->{
'has' . $this->getKey()}()
71 return parent::_toHtml();
getUrl($route='', $params=[])
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\DefaultPathInterface $defaultPath, \Magento\Framework\Registry $registry, array $data=[])