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
Data
Form
Element
Note.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\Framework\Data\Form\Element
;
13
14
use
Magento\Framework\Escaper
;
15
16
class
Note
extends
AbstractElement
17
{
24
public
function
__construct
(
25
Factory
$factoryElement,
26
CollectionFactory
$factoryCollection,
27
Escaper
$escaper,
28
$data
= []
29
) {
30
parent::__construct($factoryElement, $factoryCollection, $escaper,
$data
);
31
$this->
setType
(
'note'
);
32
}
33
37
public
function
getElementHtml
()
38
{
39
$html = $this->
getBeforeElementHtml
()
40
.
'<div id="'
41
. $this->
getHtmlId
()
42
.
'" class="control-value admin__field-value">'
43
. $this->getText()
44
.
'</div>'
45
. $this->
getAfterElementHtml
();
46
return
$html;
47
}
48
}
Magento\Framework\Data\Form\Element\CollectionFactory
Definition:
CollectionFactory.php:10
Magento\Framework\Data\Form\Element\Note
Definition:
Note.php:16
Magento\Framework\Data\Form\Element\AbstractElement\getBeforeElementHtml
getBeforeElementHtml()
Definition:
AbstractElement.php:383
Magento\Framework\Data\Form\Element\Factory
Definition:
Factory.php:14
Magento\Framework\Escaper
Definition:
Escaper.php:15
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Data\Form\Element\AbstractElement\getHtmlId
getHtmlId()
Definition:
AbstractElement.php:172
Magento\Framework\Data\Form\Element\AbstractElement\setType
setType($type)
Definition:
AbstractElement.php:197
Magento\Framework\Data\Form\Element\Note\getElementHtml
getElementHtml()
Definition:
Note.php:37
Magento\Framework\Data\Form\Element
Definition:
AbstractElement.php:6
Magento\Framework\Data\Form\Element\AbstractElement\getAfterElementHtml
getAfterElementHtml()
Definition:
AbstractElement.php:393
Magento\Framework\Data\Form\Element\Note\__construct
__construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[])
Definition:
Note.php:24
Magento\Framework\Data\Form\Element\AbstractElement
Definition:
AbstractElement.php:21