From 9fad212ea893fad99adc89da2a14151bea7e5c3e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:15:25 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/admin (#1504) --- code/Controller/AssetAdmin.php | 5 +---- code/Controller/AssetAdminOpen.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/code/Controller/AssetAdmin.php b/code/Controller/AssetAdmin.php index 13667d200..618c3139f 100644 --- a/code/Controller/AssetAdmin.php +++ b/code/Controller/AssetAdmin.php @@ -62,10 +62,7 @@ class AssetAdmin extends AssetAdminOpen implements PermissionProvider private static $menu_icon_class = 'font-icon-image'; - /** - * @deprecated 5.4.0 Will be renamed to model_class - */ - private static $tree_class = Folder::class; + private static $model_class = Folder::class; private static $url_handlers = [ // Legacy redirect for SS3-style detail view diff --git a/code/Controller/AssetAdminOpen.php b/code/Controller/AssetAdminOpen.php index 54522e29f..d17ebcfb7 100644 --- a/code/Controller/AssetAdminOpen.php +++ b/code/Controller/AssetAdminOpen.php @@ -37,7 +37,7 @@ class AssetAdminOpen extends LeftAndMain private static string $menu_icon_class = 'font-icon-image'; - private static string $tree_class = Folder::class; + private static string $model_class = Folder::class; private static array $url_handlers = [ 'GET api/read/$ID!' => 'apiRead',