Compare commits

..

4 Commits

Author SHA1 Message Date
Guy Sartorelli
f7b0f01024
Merge pull request #3018 from creative-commoners/pulls/6/remove-depr
FIX Import Deprecation class
2024-10-22 16:15:13 +13:00
Steve Boyd
e1be07d6f0 FIX Import Deprecation class 2024-10-22 15:55:15 +13:00
github-actions
b05a24d5d1 Merge branch '5' into 6 2024-10-21 23:57:32 +00:00
Guy Sartorelli
42aed2b72e
API Deprecations for template layer (#3012) 2024-10-22 12:53:07 +13:00

View File

@ -27,6 +27,7 @@ use SilverStripe\Versioned\Versioned;
use SilverStripe\View\Parsers\URLSegmentFilter;
use SilverStripe\View\Requirements;
use SilverStripe\View\SSViewer;
use SilverStripe\Dev\Deprecation;
/**
* The most common kind of controller; effectively a controller linked to a {@link DataObject}.
@ -291,9 +292,11 @@ class ContentController extends Controller
/**
* @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);
}