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
View
Layout
Generator
Structure.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Layout\Generator
;
7
8
use
Magento\Framework\View\Layout\Pool
as LayoutPool;
9
use
Magento\Framework\View\Element\UiComponentInterface
;
10
use
Magento\Framework\View\Element\UiComponent\LayoutInterface
;
11
15
class
Structure
16
{
20
protected
$layoutPool
;
21
27
public
function
__construct
(LayoutPool
$layoutPool
)
28
{
29
$this->layoutPool =
$layoutPool
;
30
}
31
38
public
function
generate(
UiComponentInterface
$component)
39
{
41
if
(!$layoutDefinition = $component->
getData
(
'layout'
)) {
42
$layoutDefinition = [
'type'
=>
'generic'
];
43
}
44
$layout = $this->layoutPool->create($layoutDefinition[
'type'
], $layoutDefinition);
45
46
return
$layout->build($component);
47
}
48
}
Magento\Framework\View\Layout\Generator\Structure\__construct
__construct(LayoutPool $layoutPool)
Definition:
Structure.php:27
Magento\Framework\View\Element\UiComponentInterface\getData
getData($key='', $index=null)
Magento\Framework\View\Element\UiComponentInterface
Definition:
UiComponentInterface.php:16
Magento\Framework\View\Layout\Generator
Definition:
Block.php:6
Magento\Framework\View\Layout\Pool
Definition:
Pool.php:14
Magento\Framework\View\Element\UiComponent\LayoutInterface
Definition:
LayoutInterface.php:13
Magento\Framework\View\Layout\Generator\Structure\$layoutPool
$layoutPool
Definition:
Structure.php:20
Magento\Framework\View\Layout\Generator\Structure
Definition:
Structure.php:15