File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
lib/internal/Magento/Framework/Data Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * Form textarea element
9
- *
10
- * @author Magento Core Team <core@magentocommerce.com>
11
- */
12
7
namespace Magento \Framework \Data \Form \Element ;
13
8
14
9
use Magento \Framework \Escaper ;
15
10
11
+ /**
12
+ * Form textarea element.
13
+ *
14
+ * @author Magento Core Team <core@magentocommerce.com>
15
+ */
16
16
class Textarea extends AbstractElement
17
17
{
18
18
/**
@@ -64,6 +64,7 @@ public function getHtmlAttributes()
64
64
'rows ' ,
65
65
'cols ' ,
66
66
'readonly ' ,
67
+ 'maxlength ' ,
67
68
'disabled ' ,
68
69
'onkeyup ' ,
69
70
'tabindex ' ,
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * Tests for \Magento\Framework\Data\Form\Element\Textarea
9
- */
10
7
namespace Magento \Framework \Data \Test \Unit \Form \Element ;
11
8
9
+ /**
10
+ * Tests for \Magento\Framework\Data\Form\Element\Textarea class.
11
+ */
12
12
class TextareaTest extends \PHPUnit \Framework \TestCase
13
13
{
14
14
/**
@@ -76,6 +76,7 @@ public function testGetHtmlAttributes()
76
76
'rows ' ,
77
77
'cols ' ,
78
78
'readonly ' ,
79
+ 'maxlength ' ,
79
80
'disabled ' ,
80
81
'onkeyup ' ,
81
82
'tabindex ' ,
You can’t perform that action at this time.
0 commit comments