diff --git a/code/Controller/AssetAdmin.php b/code/Controller/AssetAdmin.php index a2e442948..09a4490d0 100644 --- a/code/Controller/AssetAdmin.php +++ b/code/Controller/AssetAdmin.php @@ -1194,9 +1194,12 @@ public function generateThumbnails(File $file, $thumbnailLinks = false) /** * Action handler for adding pages to a campaign + * + * @deprecated 2.4.0 Will be removed without equivalent functionality to replace it */ public function addtocampaign(array $data, Form $form): HTTPResponse { + Deprecation::noticeWithNoReplacment('2.4.0'); $id = $data['ID']; $record = File::get()->byID($id); @@ -1218,9 +1221,11 @@ public function addtocampaign(array $data, Form $form): HTTPResponse * * @param HTTPRequest $request * @return Form + * @deprecated 2.4.0 Will be removed without equivalent functionality to replace it */ public function addToCampaignForm($request) { + Deprecation::noticeWithNoReplacment('2.4.0'); // Get ID either from posted back value, or url parameter $id = $request->param('ID') ?: $request->postVar('ID'); return $this->getAddToCampaignForm($id); @@ -1229,9 +1234,11 @@ public function addToCampaignForm($request) /** * @param int $id * @return Form|HTTPResponse + * @deprecated 2.4.0 Will be removed without equivalent functionality to replace it */ public function getAddToCampaignForm($id) { + Deprecation::noticeWithNoReplacment('2.4.0'); // Get record-specific fields $record = File::get()->byID($id);