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-ui
Component
Layout.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Component
;
7
8
use
Magento\Framework\View\Layout\Pool
as LayoutPool;
9
use
Magento\Framework\View\Element\Template
;
10
use
Magento\Framework\View\Element\UiComponent\LayoutInterface
;
11
use
Magento\Framework\View\Element\UiComponent\ContextInterface
;
12
16
class
Layout
extends
AbstractComponent
17
{
18
const
NAME
=
'layout'
;
19
23
protected
$layoutPool
;
24
28
protected
$type
;
29
33
protected
$layoutTypeObject
;
34
38
protected
$structure
= [];
39
49
public
function
__construct
(
50
ContextInterface
$context
,
51
LayoutPool
$layoutPool
,
52
$type
,
53
array
$components
= [],
54
array
$data
= []
55
) {
56
$this->layoutPool =
$layoutPool
;
57
$this->type =
$type
;
58
parent::__construct(
$context
,
$components
,
$data
);
59
}
60
66
public
function
getComponentName
()
67
{
68
return
static::NAME;
69
}
70
76
public
function
prepare
()
77
{
78
$this->layoutTypeObject = $this->layoutPool->create($this->type);
79
$this->structure = $this->layoutTypeObject->build($this);
80
parent::prepare();
81
}
82
86
public
function
getStructure
()
87
{
88
return
$this->structure
;
89
}
90
}
Magento\Ui\Component\AbstractComponent
Definition:
AbstractComponent.php:24
Magento\Ui\Component\Layout\$layoutPool
$layoutPool
Definition:
Layout.php:23
Magento\Ui\Component\Layout\$layoutTypeObject
$layoutTypeObject
Definition:
Layout.php:33
Magento\Ui\Component\Layout\getComponentName
getComponentName()
Definition:
Layout.php:66
Magento\Framework\View\Element\UiComponent\ContextInterface
Definition:
ContextInterface.php:17
Magento\Framework\View\Element\Template
Definition:
Context.php:6
Magento\Ui\Component\Layout\prepare
prepare()
Definition:
Layout.php:76
Magento\Framework\View\Layout\Pool
Definition:
Pool.php:14
Magento\Ui\Component\Layout
Definition:
Layout.php:16
Magento\Ui\Component\Layout\$structure
$structure
Definition:
Layout.php:38
Magento\Ui\Component\Layout\NAME
const NAME
Definition:
Layout.php:18
Magento\Ui\Component\Layout\$type
$type
Definition:
Layout.php:28
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Element\UiComponent\LayoutInterface
Definition:
LayoutInterface.php:13
Magento\Ui\Component\AbstractComponent\$context
$context
Definition:
AbstractComponent.php:31
Magento\Ui\Component\Layout\__construct
__construct(ContextInterface $context, LayoutPool $layoutPool, $type, array $components=[], array $data=[])
Definition:
Layout.php:49
Magento\Ui\Component\AbstractComponent\$components
$components
Definition:
AbstractComponent.php:36
Magento\Ui\Component\Layout\getStructure
getStructure()
Definition:
Layout.php:86
Magento\Ui\Component
Definition:
ConfigurationTest.php:6