concrete/src/Form/Service/Form.php
public function textarea($key, $valueOrMiscFields = '', $miscFields = [])
    {
        if (is_array($valueOrMiscFields)) {
            $value = '';
            $miscFields = $valueOrMiscFields;
        } else {
            $value = $valueOrMiscFields;
        }
        $requestValue = $this->getRequestValue($key);
        if (is_string($requestValue)) {
            $value = $requestValue;
        }

        return '<textarea id="' . $key . '" name="' . $key . '"' . $this->parseMiscFields('form-control', $miscFields) . '>' . $value . '</textarea>';
    }
public function textarea($key, $valueOrMiscFields = '', $miscFields = [])
    {
        if (is_array($valueOrMiscFields)) {
            $value = '';
            $miscFields = $valueOrMiscFields;
        } else {
            $value = $valueOrMiscFields;
        }
        $requestValue = $this->getRequestValue($key);
        if (is_string($requestValue)) {
            $value = $requestValue;
        }

        return '<textarea id="' . $key . '" name="' . $key . '"' . $this->parseMiscFields('form-control', $miscFields) . '>' . $value . '</textarea>';
    }
public function textarea ( $ key , $ valueOrMiscFields = '' , $ miscFields = [ ] ) { if ( is_array ( $ valueOrMiscFields ) ) { $ value = '' ; $ miscFields = $ valueOrMiscFields ; } else { $ value = $ valueOrMiscFields ; } $ requestValue = $ this -> getRequestValue ( $ key ) ; if ( is_string ( $ requestValue ) ) { $ value = $ requestValue ; } return '<textarea id="' . $ key . '" name="' . $ key . '"' . $ this -> parseMiscFields ( 'form-control' , $ miscFields ) . '>' . $ value . '</textarea>' ; }
Creates a textarea field.

@param string $key the name/id of the element
@param string|array $valueOrMiscFields the value of the element or an array with additional fields appended to the element (a hash array of attributes name => value), possibly including 'class'
@param array $miscFields (used if $valueOrMiscFields is not an array) Additional fields appended to the element (a hash array of attributes name => value), possibly including 'class'

@return string
Creates a textarea field .