Skip to content

Commit 43a4367

Browse files
committed
MAGETWO-29012: [GITHUB] Textarea element cols and rows #675
1 parent 14eb465 commit 43a4367

File tree

1 file changed

+5
-16
lines changed
  • lib/internal/Magento/Framework/Data/Form/Element

1 file changed

+5
-16
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Textarea.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,15 @@
1313

1414
use Magento\Framework\Escaper;
1515

16-
/**
17-
* @method Textarea setExtType($extType)
18-
* @method mixed getCols()
19-
* @method Textarea setCols($cols)
20-
* @method mixed getRows()
21-
* @method Textarea setRows($rows)
22-
*/
2316
class Textarea extends AbstractElement
2417
{
2518
/**
26-
* default number of rows
27-
*
28-
* @var int
19+
* Default number of rows
2920
*/
3021
const DEFAULT_ROWS = 2;
22+
3123
/**
32-
* default number of cols
33-
*
34-
* @var int
24+
* Default number of columns
3525
*/
3626
const DEFAULT_COLS = 15;
3727

@@ -89,9 +79,8 @@ public function getHtmlAttributes()
8979
public function getElementHtml()
9080
{
9181
$this->addClass('textarea');
92-
$html = '<textarea id="' . $this->getHtmlId() . '" name="' . $this->getName() . '" ' . $this->serialize(
93-
$this->getHtmlAttributes()
94-
) . $this->_getUiId() . ' >';
82+
$html = '<textarea id="' . $this->getHtmlId() . '" name="' . $this->getName() . '" '
83+
. $this->serialize($this->getHtmlAttributes()) . $this->_getUiId() . ' >';
9584
$html .= $this->getEscapedValue();
9685
$html .= "</textarea>";
9786
$html .= $this->getAfterElementHtml();

0 commit comments

Comments
 (0)