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-checkout
Block
Onepage
Link.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block\Onepage
;
7
15
class
Link
extends
\Magento\Framework\View\Element\Template
16
{
20
protected
$_checkoutSession
;
21
25
protected
$_checkoutHelper
;
26
33
public
function
__construct
(
34
\
Magento
\Framework\View\Element\
Template
\
Context
$context,
35
\
Magento
\Checkout\Model\Session $checkoutSession,
36
\
Magento
\Checkout\Helper\
Data
$checkoutHelper,
37
array
$data
= []
38
) {
39
$this->_checkoutHelper = $checkoutHelper;
40
$this->_checkoutSession = $checkoutSession;
41
parent::__construct($context,
$data
);
42
$this->_isScopePrivate =
true
;
43
}
44
48
public
function
getCheckoutUrl
()
49
{
50
return
$this->
getUrl
(
'checkout'
);
51
}
52
56
public
function
isDisabled
()
57
{
58
return
!$this->_checkoutSession->getQuote()->validateMinimumAmount();
59
}
60
64
public
function
isPossibleOnepageCheckout
()
65
{
66
return
$this->_checkoutHelper->canOnepageCheckout();
67
}
68
}
Magento\Checkout\Block\Onepage\Link\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Checkout\Helper\Data $checkoutHelper, array $data=[])
Definition:
Link.php:33
Magento\Checkout\Block\Onepage
Definition:
Failure.php:6
Magento\Checkout\Block\Onepage\Link\$_checkoutHelper
$_checkoutHelper
Definition:
Link.php:25
Magento\Checkout\Block\Onepage\Link\$_checkoutSession
$_checkoutSession
Definition:
Link.php:20
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Payment\Helper\Data
Definition:
Data.php:25
Magento\Checkout\Block\Onepage\Link\isPossibleOnepageCheckout
isPossibleOnepageCheckout()
Definition:
Link.php:64
Magento
Magento\Checkout\Block\Onepage\Link\getCheckoutUrl
getCheckoutUrl()
Definition:
Link.php:48
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Checkout\Block\Onepage\Link
Definition:
Link.php:15
Magento\Checkout\Block\Onepage\Link\isDisabled
isDisabled()
Definition:
Link.php:56
Magento\Customer\Model\Context
Definition:
Context.php:8