Skip to content

Commit

Permalink
API Update API to reflect changes in silverstripe/cms
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 7, 2024
1 parent 476b0f6 commit 46a0669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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\ErrorPage\ErrorPage:
CLASS_DESCRIPTION: 'Custom content for different error cases (e.g. "Page not found")'
CODE: 'Error code'
CODE_400: '400 - Bad Request'
CODE_401: '401 - Unauthorized'
Expand Down
4 changes: 2 additions & 2 deletions src/ErrorPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class ErrorPage extends Page

private static $allowed_children = [];

private static $description = 'Custom content for different error cases (e.g. "Page not found")';
private static $class_description = 'Custom content for different error cases (e.g. "Page not found")';

private static $icon_class = 'font-icon-p-error';
private static $cms_icon_class = 'font-icon-p-error';

/**
* Allow developers to opt out of dev messaging using Config
Expand Down

0 comments on commit 46a0669

Please sign in to comment.