Skip to content

Commit

Permalink
API Use new class_description configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 11, 2024
1 parent ac66508 commit 167b320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -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...'
Expand Down
5 changes: 5 additions & 0 deletions src/IFramePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 167b320

Please sign in to comment.