Skip to content

Commit

Permalink
API Deprecations for template layer (#3012)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Oct 21, 2024
1 parent df82162 commit 42aed2b
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 42aed2b

Please sign in to comment.