Skip to content

Commit

Permalink
API Deprecations for template layer
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 21, 2024
1 parent df82162 commit 87f4e91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/Controllers/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@ public function getMenu($level = 1)

/**
* @return ArrayList<SiteTree>
* @deprecated 5.4.0 Use getMenu() instead. You can continue to use $Menu in templates.
*/
public function Menu($level)
{
Deprecation::noticeWithNoReplacment('5.4.0', 'Use getMenu() instead. You can continue to use $Menu in templates.');
return $this->getMenu($level);
}

Expand Down

0 comments on commit 87f4e91

Please sign in to comment.