Merge pull request #375 from creative-commoners/pulls/2.2/deprecate-old-preview-url-function

Deprecate alternatePreviewLink function as per CMS
This commit is contained in:
Robbie Averill 2018-07-05 10:48:37 +12:00 committed by GitHub
commit c732c0c799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,6 +399,8 @@ class SiteTreeSubsites extends DataExtension
/**
* This function is marked as deprecated for removal in 5.0.0 in silverstripe/cms
* so now simply passes execution to where the functionality exists for backwards compatiblity.
* CMS 4.0.0 SiteTree already throws a SilverStripe deprecation error before calling this function.
* @deprecated 2.2...3.0 use updatePreviewLink instead
*
* @param string|null $action
* @return string