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
Button.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
Button
extends
AbstractElement
17
{
23
protected
$_htmlAttributes
= [
'data-mage-init'
];
24
31
public
function
__construct
(
32
Factory
$factoryElement,
33
CollectionFactory
$factoryCollection,
34
Escaper
$escaper,
35
$data
= []
36
) {
37
parent::__construct($factoryElement, $factoryCollection, $escaper,
$data
);
38
$this->
setType
(
'button'
);
39
$this->setExtType(
'textfield'
);
40
}
41
47
public
function
getHtmlAttributes
()
48
{
49
$attributes
= parent::getHtmlAttributes();
50
return
array_merge(
$attributes
, $this->_htmlAttributes);
51
}
52
}
Magento\Framework\Data\Form\Element\CollectionFactory
Definition:
CollectionFactory.php:10
Magento\Framework\Data\Form\Element\Button
Definition:
Button.php:16
Magento\Framework\Data\Form\Element\Factory
Definition:
Factory.php:14
Magento\Framework\Data\Form\Element\Button\getHtmlAttributes
getHtmlAttributes()
Definition:
Button.php:47
Magento\Framework\Escaper
Definition:
Escaper.php:15
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Data\Form\Element\AbstractElement\setType
setType($type)
Definition:
AbstractElement.php:197
$attributes
$attributes
Definition:
matrix.phtml:13
Magento\Framework\Data\Form\Element
Definition:
AbstractElement.php:6
Magento\Framework\Data\Form\Element\Button\$_htmlAttributes
$_htmlAttributes
Definition:
Button.php:23
Magento\Framework\Data\Form\Element\Button\__construct
__construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[])
Definition:
Button.php:31
Magento\Framework\Data\Form\Element\AbstractElement
Definition:
AbstractElement.php:21