diff --git a/lang/en.yml b/lang/en.yml index 152778c..c74991f 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 95bdc63..eb8a57e 100644 --- a/src/IFramePage.php +++ b/src/IFramePage.php @@ -38,8 +38,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()