Skip to content

Commit

Permalink
API Deprecate campaign admin integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 26, 2024
1 parent e8f0f68 commit a20db88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/Controller/AssetAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit a20db88

Please sign in to comment.