| Total Complexity | 1 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RichtextareaWidget extends BasicWidget |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Render a text area form widget. |
||
| 13 | * |
||
| 14 | * Data supports the following keys: |
||
| 15 | * |
||
| 16 | * - `name` - Set the input name. |
||
| 17 | * - `val` - A string of the option to mark as selected. |
||
| 18 | * - `escape` - Set to false to disable HTML escaping. |
||
| 19 | * |
||
| 20 | * All other keys will be converted into HTML attributes. |
||
| 21 | * |
||
| 22 | * @param array $data The data to build a textarea with. |
||
| 23 | * @param \Cake\View\Form\ContextInterface $context The current form context. |
||
| 24 | * @return string HTML elements. |
||
| 25 | */ |
||
| 26 | public function render(array $data, ContextInterface $context) |
||
| 46 |