From 167b320e05d5fe168656e425befff0a8cf00ea06 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 12 Nov 2024 11:25:03 +1300 Subject: [PATCH] API Use new class_description configuration --- lang/en.yml | 1 + src/IFramePage.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lang/en.yml b/lang/en.yml index 1d1e4cf..8fabe73 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,5 +1,6 @@ en: SilverStripe\IFrame\IFramePage: + CLASS_DESCRIPTION: 'Embeds an iframe into the body of the page.' DESCRIPTION: 'Embeds an iframe into the body of the page.' ExternalNote: 'Please note the following section of content is possibly being delivered from an external source (IFRAME in HTML terms), and may present unusual experiences for screen readers.' Loading: 'Loading content...' diff --git a/src/IFramePage.php b/src/IFramePage.php index 2715c52..c765abf 100644 --- a/src/IFramePage.php +++ b/src/IFramePage.php @@ -40,8 +40,13 @@ class IFramePage extends Page private static $table_name = 'IFramePage'; + /** + * @deprecated 5.4.0 use class_description instead. + */ private static $description = 'Embeds an iframe into the body of the page.'; + private static $class_description = 'Embeds an iframe into the body of the page.'; + private static $singular_name = 'IFrame Page'; public function getCMSFields()