1 | <?php |
||
26 | class BasicWidget extends BaseBasicWidget |
||
27 | { |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Render a text widget or other simple widget like email/tel/number. |
||
32 | * |
||
33 | * This method accepts a number of keys: |
||
34 | * |
||
35 | * - `name` The name attribute. |
||
36 | * - `val` The value attribute. |
||
37 | * - `escape` Set to false to disable escaping on all attributes. |
||
38 | * |
||
39 | * Any other keys provided in $data will be converted into HTML attributes. |
||
40 | * |
||
41 | * @param array $data The data to build an input with. |
||
42 | * @param \Cake\View\Form\ContextInterface $context The current form context. |
||
43 | * @return string |
||
44 | */ |
||
45 | public function render(array $data, ContextInterface $context) |
||
67 | } |
||
68 |