From 87f4e9184e7c604844b5fce554638d10513c8c1e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 10 Oct 2024 16:40:45 +1300 Subject: [PATCH] API Deprecations for template layer --- code/Controllers/ContentController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Controllers/ContentController.php b/code/Controllers/ContentController.php index 9b93af99..938591bd 100644 --- a/code/Controllers/ContentController.php +++ b/code/Controllers/ContentController.php @@ -297,9 +297,11 @@ class ContentController extends Controller /** * @return ArrayList + * @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); }