Skip to content

Commit

Permalink
API Move some code to framework to be reusable
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 committed Nov 21, 2024
1 parent 6c48657 commit 34a10aa
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 34a10aa

Please sign in to comment.