Set the widget registry the helper will use.
public widgetRegistry ( Cake\View\Widget\WidgetRegistry $instance = null, array $widgets = [] ) : Cake\View\Widget\WidgetRegistry | ||
$instance | Cake\View\Widget\WidgetRegistry | The registry instance to set. |
$widgets | array | An array of widgets |
return | Cake\View\Widget\WidgetRegistry |