Interface WidgetInterface
Interface for input widgets.
Namespace: Cake\View\Widget
Method Summary
-
render() public
Converts the $data into one or many HTML elements.
-
secureFields() public
Returns a list of fields that need to be secured for this widget.
Method Detail
render() ¶ public
render(array<string, mixed> $data, Cake\View\Form\ContextInterface $context): string
Converts the $data into one or many HTML elements.
Parameters
-
array<string, mixed>
$data The data to render.
-
Cake\View\Form\ContextInterface
$context The current form context.
Returns
string
secureFields() ¶ public
secureFields(array<string, mixed> $data): array<string>
Returns a list of fields that need to be secured for this widget.
Parameters
-
array<string, mixed>
$data The data to render.
Returns
array<string>