From 1c65739973bf5a36b95b332ea1d8c39f4bf70c9f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:59:08 +1300 Subject: [PATCH] API Use new class_description configuration (#610) --- lang/en.yml | 1 + src/Pages/SubsitesVirtualPage.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/en.yml b/lang/en.yml index 418d8918..461461e7 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -81,6 +81,7 @@ en: db_Protocol: Protocol has_one_Subsite: Subsite SilverStripe\Subsites\Pages\SubsitesVirtualPage: + CLASS_DESCRIPTION: 'Displays the content of a page on another subsite' DESCRIPTION: 'Displays the content of a page on another subsite' OverrideNote: 'Overrides inherited value from the source' PLURALNAME: 'Subsites Virtual Pages' diff --git a/src/Pages/SubsitesVirtualPage.php b/src/Pages/SubsitesVirtualPage.php index cd29130c..78177d60 100644 --- a/src/Pages/SubsitesVirtualPage.php +++ b/src/Pages/SubsitesVirtualPage.php @@ -21,11 +21,15 @@ class SubsitesVirtualPage extends VirtualPage { - private static $table_name = 'SubsitesVirtualPage'; + /** + * @deprecated 5.4.0 use class_description instead. + */ private static $description = 'Displays the content of a page on another subsite'; + private static $class_description = 'Displays the content of a page on another subsite'; + private static $db = [ 'CustomMetaTitle' => 'Varchar(255)', 'CustomMetaKeywords' => 'Varchar(255)',