From d07605214ff9931b8a6c189d7d9bb9c0029adfe2 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 21 Nov 2024 19:05:59 +1300 Subject: [PATCH] API Deprecate campaign admin integrations --- code/Extensions/CampaignAdminExtension.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/Extensions/CampaignAdminExtension.php b/code/Extensions/CampaignAdminExtension.php index 20545d102..4099539ee 100644 --- a/code/Extensions/CampaignAdminExtension.php +++ b/code/Extensions/CampaignAdminExtension.php @@ -7,15 +7,23 @@ use SilverStripe\Core\Extension; use SilverStripe\Forms\FormAction; use SilverStripe\Security\Permission; +use SilverStripe\Dev\Deprecation; /** * Extension that updates the Popover menu of `FileFormFactory`. * This extension will only be applied if the `campaign-admin` module is installed. * * @extends Extension + * @deprecated 5.4.0 Will be removed without equivalent functionality to replace it */ class CampaignAdminExtension extends Extension { + public function __construct() + { + Deprecation::notice('5.4.0', 'Will be removed without equivalent functionality to replace it', Deprecation::SCOPE_CLASS); + parent::__construct(); + } + /** * Update the Popover menu of `FileFormFactory` with the "Add to campaign" button. *