1 | <?php |
||
27 | class TextareaWidget extends CakeTextareaWidget |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Render a text area form widget. |
||
32 | * |
||
33 | * Data supports the following keys: |
||
34 | * |
||
35 | * - `name` - Set the input name. |
||
36 | * - `val` - A string of the option to mark as selected. |
||
37 | * - `escape` - Set to false to disable HTML escaping. |
||
38 | * |
||
39 | * All other keys will be converted into HTML attributes. |
||
40 | * |
||
41 | * @param array $data The data to build a textarea with. |
||
42 | * @param \Cake\View\Form\ContextInterface $context The current form context. |
||
43 | * @return string HTML elements. |
||
44 | */ |
||
45 | public function render(array $data, ContextInterface $context) |
||
54 | } |
||
55 |