mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add getters for relation widgets (#3164)
These are available for the FormController as well, so this is just consistent and useful in some cases. Credit to @alxy
This commit is contained in:
parent
04bf359d8c
commit
132336dcb8
@ -1603,4 +1603,22 @@ class RelationController extends ControllerBehavior
|
||||
|
||||
return $this->makeConfig($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the manage widget used by this behavior.
|
||||
*
|
||||
* @return \Backend\Classes\WidgetBase
|
||||
*/
|
||||
public function relationGetManageWidget() {
|
||||
return $this->manageWidget;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the view widget used by this behavior.
|
||||
*
|
||||
* @return \Backend\Classes\WidgetBase
|
||||
*/
|
||||
public function relationGetViewWidget() {
|
||||
return $this->viewWidget;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user