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()