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-tax
CustomerData
CheckoutTotalsJsLayoutDataProvider.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Tax\CustomerData
;
8
9
use
Magento\Customer\CustomerData\JsLayoutDataProviderInterface
;
10
14
class
CheckoutTotalsJsLayoutDataProvider
implements
JsLayoutDataProviderInterface
15
{
19
protected
$taxConfig
;
20
24
public
function
__construct
(
25
\
Magento
\Tax\Model\Config
$taxConfig
26
) {
27
$this->taxConfig =
$taxConfig
;
28
}
29
33
public
function
getData
()
34
{
35
return
[
36
'components'
=> [
37
'minicart_content'
=> [
38
'children'
=> [
39
'subtotal.container'
=> [
40
'children'
=> [
41
'subtotal'
=> [
42
'children'
=> [
43
'subtotal.totals'
=> [
44
'config'
=> $this->
getTotalsConfig
(),
45
],
46
],
47
],
48
],
49
],
50
],
51
],
52
],
53
];
54
}
55
61
protected
function
getTotalsConfig
()
62
{
63
return
[
64
'display_cart_subtotal_incl_tax'
=> (int)$this->taxConfig->displayCartSubtotalInclTax(),
65
'display_cart_subtotal_excl_tax'
=> (int)$this->taxConfig->displayCartSubtotalExclTax(),
66
];
67
}
68
}
Magento\Customer\CustomerData\JsLayoutDataProviderInterface
Definition:
JsLayoutDataProviderInterface.php:15
Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider
Definition:
CheckoutTotalsJsLayoutDataProvider.php:14
Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider\__construct
__construct(\Magento\Tax\Model\Config $taxConfig)
Definition:
CheckoutTotalsJsLayoutDataProvider.php:24
Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider\getTotalsConfig
getTotalsConfig()
Definition:
CheckoutTotalsJsLayoutDataProvider.php:61
Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider\$taxConfig
$taxConfig
Definition:
CheckoutTotalsJsLayoutDataProvider.php:19
Magento
Magento\Tax\CustomerData
Definition:
CheckoutTotalsJsLayoutDataProvider.php:7
Magento\Tax\CustomerData\CheckoutTotalsJsLayoutDataProvider\getData
getData()
Definition:
CheckoutTotalsJsLayoutDataProvider.php:33