Make formWidget available to FormController behavior via formGetWidget()

This commit is contained in:
Sam Georges 2014-08-03 10:21:25 +10:00
parent f99bd0e427
commit 1e8bf5d62b

View File

@ -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