From ee8d86f508d98c525e6c4a60044bbbd89c19319a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 30 Oct 2024 17:11:16 +1300 Subject: [PATCH] API Deprecate API that will be renamed --- code/CMSProfileController.php | 3 +++ code/LeftAndMain.php | 1 + code/SecurityAdmin.php | 3 +++ 3 files changed, 7 insertions(+) diff --git a/code/CMSProfileController.php b/code/CMSProfileController.php index 5d745800b..eb34d8e5c 100644 --- a/code/CMSProfileController.php +++ b/code/CMSProfileController.php @@ -20,6 +20,9 @@ class CMSProfileController extends LeftAndMain private static $required_permission_codes = 'CMS_ACCESS'; + /** + * @deprecated 5.4.0 Will be renamed to model_class + */ private static $tree_class = Member::class; public function getEditForm($id = null, $fields = null) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index bb4b9853e..c1af92a19 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -123,6 +123,7 @@ class LeftAndMain extends Controller implements PermissionProvider * * @config * @var string + * @deprecated 5.4.0 Will be renamed to model_class */ private static $tree_class = null; diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index b817ae5c8..c17d42ac8 100755 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -58,6 +58,9 @@ class SecurityAdmin extends ModelAdmin implements PermissionProvider private static $menu_priority = 0; + /** + * @deprecated 5.4.0 Will be renamed to model_class + */ private static $tree_class = Group::class; private static $required_permission_codes = 'CMS_ACCESS_SecurityAdmin';