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
Wrapper
Block.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Component\Wrapper
;
7
8
use
Magento\Framework\View\Element\BlockInterface
;
9
use
Magento\Framework\View\Element\UiComponent\ContextInterface
;
10
use
Magento\Ui\Component\AbstractComponent
;
11
use
Magento\Framework\View\Element\UiComponent\BlockWrapperInterface
;
12
16
class
Block
extends
AbstractComponent
implements
BlockWrapperInterface
17
{
18
const
NAME
=
'blockWrapper'
;
19
23
protected
$block
;
24
33
public
function
__construct
(
34
ContextInterface
$context
,
35
BlockInterface
$block
,
36
array
$components
= [],
37
array
$data
= []
38
) {
39
$this->block =
$block
;
40
parent::__construct(
$context
,
$components
,
$data
);
41
}
42
48
public
function
getBlock
()
49
{
50
return
$this->block
;
51
}
52
58
public
function
getComponentName
()
59
{
60
return
static::NAME;
61
}
62
66
public
function
render
()
67
{
68
return
$this->block->toHtml();
69
}
70
74
public
function
getConfiguration
()
75
{
76
return
array_merge(
77
(array) $this->block->getData(
'config'
),
78
(array) $this->
getData
(
'config'
)
79
);
80
}
81
}
Magento\Ui\Component\AbstractComponent
Definition:
AbstractComponent.php:24
Magento\Framework\View\Element\UiComponent\ContextInterface
Definition:
ContextInterface.php:17
Magento\Ui\Component\Wrapper\Block\render
render()
Definition:
Block.php:66
Magento\Ui\Component\AbstractComponent\getData
getData($key='', $index=null)
Definition:
AbstractComponent.php:264
Magento\Framework\View\Element\UiComponent\BlockWrapperInterface
Definition:
BlockWrapperInterface.php:14
Magento\Ui\Component\Wrapper\Block\getBlock
getBlock()
Definition:
Block.php:48
Magento\Ui\Component\Wrapper\Block\$block
$block
Definition:
Block.php:23
Magento\Ui\Component\Wrapper\Block
Definition:
Block.php:16
Magento\Ui\Component\Wrapper\Block\__construct
__construct(ContextInterface $context, BlockInterface $block, array $components=[], array $data=[])
Definition:
Block.php:33
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ui\Component\Wrapper
Definition:
Block.php:6
Magento\Ui\Component\Wrapper\Block\getConfiguration
getConfiguration()
Definition:
Block.php:74
Magento\Ui\Component\AbstractComponent\$context
$context
Definition:
AbstractComponent.php:31
Magento\Framework\View\Element\BlockInterface
Definition:
BlockInterface.php:16
Magento\Ui\Component\Wrapper\Block\NAME
const NAME
Definition:
Block.php:18
Magento\Ui\Component\AbstractComponent\$components
$components
Definition:
AbstractComponent.php:36
Magento\Ui\Component\Wrapper\Block\getComponentName
getComponentName()
Definition:
Block.php:58