Skip to content

Commit 1c65739

Browse files
API Use new class_description configuration (#610)
1 parent 83fdde4 commit 1c65739

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lang/en.yml

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ en:
8181
db_Protocol: Protocol
8282
has_one_Subsite: Subsite
8383
SilverStripe\Subsites\Pages\SubsitesVirtualPage:
84+
CLASS_DESCRIPTION: 'Displays the content of a page on another subsite'
8485
DESCRIPTION: 'Displays the content of a page on another subsite'
8586
OverrideNote: 'Overrides inherited value from the source'
8687
PLURALNAME: 'Subsites Virtual Pages'

src/Pages/SubsitesVirtualPage.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121

2222
class SubsitesVirtualPage extends VirtualPage
2323
{
24-
2524
private static $table_name = 'SubsitesVirtualPage';
2625

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

31+
private static $class_description = 'Displays the content of a page on another subsite';
32+
2933
private static $db = [
3034
'CustomMetaTitle' => 'Varchar(255)',
3135
'CustomMetaKeywords' => 'Varchar(255)',

0 commit comments

Comments
 (0)