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
Obscure.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\Framework\Data\Form\Element
;
13
14
class
Obscure
extends
\Magento\Framework\Data\Form\Element\Password
15
{
19
protected
$_obscuredValue
=
'******'
;
20
27
public
function
getEscapedValue
(
$index
=
null
)
28
{
29
$value
= parent::getEscapedValue(
$index
);
30
if
(!empty(
$value
)) {
31
return
$this->_obscuredValue
;
32
}
33
return
$value
;
34
}
35
41
public
function
getHtmlAttributes
()
42
{
43
return
[
44
'type'
,
45
'title'
,
46
'class'
,
47
'style'
,
48
'onclick'
,
49
'onchange'
,
50
'onkeyup'
,
51
'disabled'
,
52
'readonly'
,
53
'maxlength'
,
54
'tabindex'
,
55
'data-form-part'
,
56
'data-role'
,
57
'data-action'
58
];
59
}
60
}
Magento\Framework\Data\Form\Element\Obscure
Definition:
Obscure.php:14
Magento\Framework\Data\Form\Element\Obscure\getEscapedValue
getEscapedValue($index=null)
Definition:
Obscure.php:27
$value
$value
Definition:
gender.phtml:16
Magento\Framework\Data\Form\Element
Definition:
AbstractElement.php:6
Magento\Framework\Data\Form\Element\Obscure\$_obscuredValue
$_obscuredValue
Definition:
Obscure.php:19
Magento\Framework\Data\Form\Element\Obscure\getHtmlAttributes
getHtmlAttributes()
Definition:
Obscure.php:41
$index
$index
Definition:
list.phtml:44