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-rule
Block
Newchild.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Rule\Block
;
7
8
use
Magento\Framework\Data\Form\Element\AbstractElement
;
9
10
class
Newchild
extends
\Magento\Framework\View\Element\AbstractBlock
implements
11
\Magento\Framework\Data\Form\Element\Renderer\RendererInterface
12
{
17
public
function
render
(
AbstractElement
$element
)
18
{
19
$element
->addClass(
'element-value-changer'
);
20
$html =
' <span class="rule-param rule-param-new-child"'
.
21
(
$element
->getParamId() ?
' id="'
.
22
$element
->getParamId() .
23
'"'
:
''
) .
24
'>'
;
25
$html .=
'<a href="javascript:void(0)" class="label">'
;
26
$html .=
$element
->getValueName();
27
$html .=
'</a><span class="element">'
;
28
$html .=
$element
->getElementHtml();
29
$html .=
'</span></span> '
;
30
return
$html;
31
}
32
}
Magento\Framework\View\Element\AbstractBlock
Definition:
AbstractBlock.php:25
Magento\Rule\Block\Newchild
Definition:
Newchild.php:10
Magento\Rule\Block
Definition:
Actions.php:6
Magento\Rule\Block\Newchild\render
render(AbstractElement $element)
Definition:
Newchild.php:17
Magento\Framework\Data\Form\Element\AbstractElement
Definition:
AbstractElement.php:21
$element
$element
Definition:
element.phtml:12