Skip to content

Commit

Permalink
API Use new class_description configuration (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 14, 2024
1 parent 83fdde4 commit 1c65739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ en:
db_Protocol: Protocol
has_one_Subsite: Subsite
SilverStripe\Subsites\Pages\SubsitesVirtualPage:
CLASS_DESCRIPTION: 'Displays the content of a page on another subsite'
DESCRIPTION: 'Displays the content of a page on another subsite'
OverrideNote: 'Overrides inherited value from the source'
PLURALNAME: 'Subsites Virtual Pages'
Expand Down
6 changes: 5 additions & 1 deletion src/Pages/SubsitesVirtualPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@

class SubsitesVirtualPage extends VirtualPage
{

private static $table_name = 'SubsitesVirtualPage';

/**
* @deprecated 5.4.0 use class_description instead.
*/
private static $description = 'Displays the content of a page on another subsite';

private static $class_description = 'Displays the content of a page on another subsite';

private static $db = [
'CustomMetaTitle' => 'Varchar(255)',
'CustomMetaKeywords' => 'Varchar(255)',
Expand Down

0 comments on commit 1c65739

Please sign in to comment.