From bfc58dddf7da14a0d5bf916111f43a95a6d7939e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:01:19 +1300 Subject: [PATCH] API Use new class_description configuration (#1347) --- code/Model/UserDefinedForm.php | 3 +++ lang/en.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/code/Model/UserDefinedForm.php b/code/Model/UserDefinedForm.php index eaa2c203..e4c6ec8f 100755 --- a/code/Model/UserDefinedForm.php +++ b/code/Model/UserDefinedForm.php @@ -23,9 +23,12 @@ class UserDefinedForm extends Page /** * @var string + * @deprecated 5.4.0 use class_description instead. */ private static $description = 'Adds a customizable form.'; + private static $class_description = 'Adds a customizable form.'; + /** * @var string */ diff --git a/lang/en.yml b/lang/en.yml index aa9f2dd0..2f6a7d48 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -353,6 +353,7 @@ en: has_one_Parent: Parent SilverStripe\UserForms\Model\UserDefinedForm: ADDEMAILRECIPIENT: 'Add Email Recipient' + CLASS_DESCRIPTION: 'Adds a customizable form.' CLEARBUTTON: Clear CONFIGURATION: Configuration DESCRIPTION: 'Adds a customizable form.'