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
QuoteShortcutButtons.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block
;
7
8
use
Magento\Framework\View\Element\Template
;
9
14
class
QuoteShortcutButtons
extends
\Magento\Catalog\Block\ShortcutButtons
15
{
19
protected
$_checkoutSession
;
20
27
public
function
__construct
(
28
Template
\
Context
$context,
29
\
Magento
\Checkout\Model\Session $checkoutSession,
30
array
$data
= []
31
) {
32
parent::__construct($context,
false
,
null
,
$data
);
33
$this->_checkoutSession = $checkoutSession;
34
}
35
41
protected
function
_beforeToHtml
()
42
{
43
$this->_eventManager->dispatch(
44
'shortcut_buttons_container'
,
45
[
46
'container'
=> $this,
47
'is_catalog_product'
=> $this->_isCatalogProduct,
48
'or_position'
=> $this->_orPosition,
49
'checkout_session'
=> $this->_checkoutSession
50
]
51
);
52
return
$this;
53
}
54
}
Magento\Catalog\Block\ShortcutButtons
Definition:
ShortcutButtons.php:18
Magento\Framework\View\Element\Template
Definition:
Context.php:6
Magento\Checkout\Block
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
Magento\Checkout\Block\QuoteShortcutButtons\__construct
__construct(Template\Context $context, \Magento\Checkout\Model\Session $checkoutSession, array $data=[])
Definition:
QuoteShortcutButtons.php:27
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Checkout\Block\QuoteShortcutButtons
Definition:
QuoteShortcutButtons.php:14
Magento\Checkout\Block\QuoteShortcutButtons\_beforeToHtml
_beforeToHtml()
Definition:
QuoteShortcutButtons.php:41
Magento
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Checkout\Block\QuoteShortcutButtons\$_checkoutSession
$_checkoutSession
Definition:
QuoteShortcutButtons.php:19