Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-multishipping
Block
Checkout
Link.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Multishipping\Block\Checkout
;
7
14
class
Link
extends
\Magento\Framework\View\Element\Template
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
}
Magento\Multishipping\Block\Checkout\Link\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Multishipping\Helper\Data $helper, array $data=[])
Definition:
Link.php:28
Magento\Multishipping\Block\Checkout\Link\_toHtml
_toHtml()
Definition:
Link.php:57
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Multishipping\Block\Checkout\Link\getQuote
getQuote()
Definition:
Link.php:49
Magento\Multishipping\Block\Checkout\Link\getCheckoutUrl
getCheckoutUrl()
Definition:
Link.php:41
Magento
Magento\Multishipping\Block\Checkout
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Catalog\Model\Product\Link
Definition:
Link.php:26
Magento\Multishipping\Block\Checkout\Link\$helper
$helper
Definition:
Link.php:21
Magento\Multishipping\Model\Checkout\Type\Multishipping
Definition:
Multishipping.php:28