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 $helper;
22 
28  public function __construct(
29  \Magento\Framework\View\Element\Template\Context $context,
30  \Magento\Multishipping\Helper\Data $helper,
31  array $data = []
32  ) {
33  $this->helper = $helper;
34  parent::__construct($context, $data);
35  $this->_isScopePrivate = true;
36  }
37 
41  public function getCheckoutUrl()
42  {
43  return $this->getUrl('multishipping/checkout', ['_secure' => true]);
44  }
45 
49  public function getQuote()
50  {
51  return $this->helper->getQuote();
52  }
53 
57  public function _toHtml()
58  {
59  if (!$this->helper->isMultishippingCheckoutAvailable()) {
60  return '';
61  }
62  return parent::_toHtml();
63  }
64 }