summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/html/src/FormElement/TextareaElement.php
blob: dc5c42bb547a2d64b86ce6f8f6e327b449bcf898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace ipl\Html\FormElement;

class TextareaElement extends BaseFormElement
{
    protected $tag = 'textarea';

    public function setValue($value)
    {
        parent::setValue($value);

        // A textarea's content actually is the value
        $this->setContent($value);

        return $this;
    }

    public function getValueAttribute()
    {
        // textarea elements don't have a value attribute
        return null;
    }
}