mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Make formWidget available to FormController behavior via formGetWidget()
This commit is contained in:
parent
f99bd0e427
commit
1e8bf5d62b
@ -409,6 +409,15 @@ class FormController extends ControllerBehavior
|
||||
return $this->formRender(['section' => 'secondary']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the widget used by this behavior.
|
||||
* @return Backend\Classes\WidgetBase
|
||||
*/
|
||||
public function formGetWidget()
|
||||
{
|
||||
return $this->formWidget;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to get a unique ID for the form widget.
|
||||
* @return string
|
||||
|
Loading…
x
Reference in New Issue
Block a user