From 132336dcb8b914be6d13523b7b8c4c0b0fac1294 Mon Sep 17 00:00:00 2001 From: Alexander Guth Date: Fri, 19 Apr 2019 20:51:51 +0200 Subject: [PATCH] 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 --- .../backend/behaviors/RelationController.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 6eefd1444..b339dcc8a 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -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; + } }