public function render(array $data, ContextInterface $context)
    {
        $data = array_merge(['class' => null], $data);

        $data['class'] .= ' materialize-textarea';
        $data['class'] = Str::trim($data['class']);

        return parent::render($data, $context);
    }
public function render(array $data, ContextInterface $context)
    {
        $data = array_merge(['class' => null], $data);

        $data['class'] .= ' materialize-textarea';
        $data['class'] = Str::trim($data['class']);

        return parent::render($data, $context);
    }
public function render ( array $ data , ContextInterface $ context ) { $ data = array_merge ( [ 'class' => null ] , $ data ) ; $ data [ 'class' ] .= ' materialize-textarea' ; $ data [ 'class' ] = Str :: trim ( $ data [ 'class' ] ) ; return parent :: render ( $ data , $ context ) ; }
Render a text area form widget.

Data supports the following keys:

- `name` - Set the input name.
- `val` - A string of the option to mark as selected.
- `escape` - Set to false to disable HTML escaping.

All other keys will be converted into HTML attributes.

@param   array $data The data to build a textarea with.
@param   \Cake\View\Form\ContextInterface $context The current form context.
@return  string HTML elements.
Render a text area form widget .