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:
Alexander Guth 2019-04-19 20:51:51 +02:00 committed by Luke Towers
parent 04bf359d8c
commit 132336dcb8

View File

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