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
framework
Pricing
Render
Layout.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Pricing\Render
;
8
9
use
Magento\Framework\View\LayoutFactory
;
10
use
Magento\Framework\View\LayoutInterface
;
11
15
class
Layout
16
{
22
protected
$layout
;
23
30
public
function
__construct
(
31
LayoutFactory
$layoutFactory,
32
\
Magento
\Framework\View\
LayoutInterface
$generalLayout
33
) {
34
$this->layout = $layoutFactory->
create
([
'cacheable'
=> $generalLayout->isCacheable()]);
35
}
36
43
public
function
addHandle
(
$handle
)
44
{
45
$this->layout->getUpdate()->addHandle(
$handle
);
46
}
47
53
public
function
loadLayout
()
54
{
55
$this->layout->getUpdate()->load();
56
$this->layout->generateXml();
57
$this->layout->generateElements();
58
}
59
66
public
function
getBlock
(
$name
)
67
{
68
return
$this->layout->getBlock(
$name
);
69
}
70
}
Magento\Framework\View\LayoutFactory
Definition:
LayoutFactory.php:11
Magento\Framework\Pricing\Render\Layout\__construct
__construct(LayoutFactory $layoutFactory, \Magento\Framework\View\LayoutInterface $generalLayout)
Definition:
Layout.php:30
Magento\Framework\Pricing\Render\Layout\getBlock
getBlock($name)
Definition:
Layout.php:66
Magento\Framework\Pricing\Render\Layout\$layout
$layout
Definition:
Layout.php:22
Magento\Framework\Pricing\Render
Definition:
AbstractAdjustment.php:7
Magento\Framework\View\LayoutFactory\create
create(array $data=[])
Definition:
LayoutFactory.php:48
Magento
Magento\Framework\Pricing\Render\Layout
Definition:
Layout.php:15
Magento\Framework\View\LayoutInterface
Definition:
LayoutInterface.php:13
Magento\Framework\Pricing\Render\Layout\addHandle
addHandle($handle)
Definition:
Layout.php:43
$handle
$handle
Definition:
payment_enc_cc.php:26
Magento\Framework\Pricing\Render\Layout\loadLayout
loadLayout()
Definition:
Layout.php:53
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14