Debian Codegraph @

vendor/ipl/html/src/FormElement/TextareaElement.php

raw
1 <?php
2
3 namespace ipl\Html\FormElement;
4
5 class TextareaElement extends BaseFormElement
6 {
7 protected $tag = 'textarea';
8
9 public function setValue($value)
10 {
11 parent::setValue($value);
12
13 // A textarea's content actually is the value
14 $this->setContent($value);
15
16 return $this;
17 }
18
19 public function getValueAttribute()
20 {
21 // textarea elements don't have a value attribute
22 return null;
23 }
24 }