From a20db8893578e234b2a727472a8d3362a0721a42 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 26 Nov 2024 15:12:22 +1300 Subject: [PATCH] API Deprecate campaign admin integrations --- code/Controller/AssetAdmin.php | 7 +++++++ 1 file changed, 7 insertions(+) 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);