Skip to content

Commit

Permalink
API Move some code to framework to be reusable (#3022)
Browse files Browse the repository at this point in the history
Some of this code needs to be usable on classes other than SiteTree with
the CMSMain refactoring.
  • Loading branch information
GuySartorelli authored Nov 26, 2024
1 parent d1fd216 commit 0778d7b
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 502 deletions.
2 changes: 2 additions & 0 deletions code/Controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ public function Breadcrumbs($unlinked = false)
if ($page = SiteTree::get()->byID($parentID)) {
$this->buildListViewBreadcrumb($items, $page);
}
// At this stage we also know the parent ID is the "current" ID for this view
$this->setCurrentPageID($parentID);
}
}

Expand Down
5 changes: 0 additions & 5 deletions code/Model/RedirectorPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
*/
class RedirectorPage extends Page
{
/**
* @deprecated 5.4.0 use class_description instead.
*/
private static $description = 'Redirects requests to another location';

private static string $class_description = 'Redirects requests to another location';

private static $icon_class = 'font-icon-p-redirect';
Expand Down
Loading

0 comments on commit 0778d7b

Please sign in to comment.