Skip to content

Commit

Permalink
API Deprecate API being removed in CMS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Feb 25, 2025
1 parent a3ec77b commit 908e528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ class LeftAndMain extends Controller implements PermissionProvider

/**
* Form schema header identifier
* @deprecated 2.4.0 use SilverStripe\Forms\Schema\FormSchema::SCHEMA_HEADER instead.
*/
const SCHEMA_HEADER = 'X-Formschema-Request';
const SCHEMA_HEADER = FormSchema::SCHEMA_HEADER;

/**
* Enable front-end debugging (increases verbosity) in dev mode.
Expand Down Expand Up @@ -1271,9 +1272,11 @@ public function Breadcrumbs($unlinked = false)
*
* @throws InvalidArgumentException
* @return LeftAndMain_SearchFilter
* @deprecated 2.4.0 Will be removed without equivalent functionality to replace it.
*/
protected function getSearchFilter()
{
Deprecation::noticeWithNoReplacment('2.4.0');
if ($this->searchFilterCache) {
return $this->searchFilterCache;
}
Expand Down
1 change: 1 addition & 0 deletions code/LeftAndMain_SearchFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/**
* Abstract interface for a class which may be used to filter the results displayed
* in a nested tree
* @deprecated 2.4.0 Will be removed without equivalent functionality to replace it.
*/
interface LeftAndMain_SearchFilter
{
Expand Down

0 comments on commit 908e528

Please sign in to comment.