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