From c9f4131475167a9549acb1f366a7eddb271c452c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 26 Nov 2024 10:56:15 +1300 Subject: [PATCH] API Deprecate InternalLinkModalExtension --- code/Forms/InternalLinkModalExtension.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/Forms/InternalLinkModalExtension.php b/code/Forms/InternalLinkModalExtension.php index 071c2efb27..f84c902988 100644 --- a/code/Forms/InternalLinkModalExtension.php +++ b/code/Forms/InternalLinkModalExtension.php @@ -5,12 +5,14 @@ use SilverStripe\Admin\LeftAndMainFormRequestHandler; use SilverStripe\Admin\ModalController; use SilverStripe\Core\Extension; +use SilverStripe\Dev\Deprecation; use SilverStripe\Forms\Form; /** * Decorates ModalController with insert internal link * * @extends Extension + * @deprecated 5.4.0 Will be replaced with configuration on SilverStripe\Admin\ModalController */ class InternalLinkModalExtension extends Extension { @@ -23,6 +25,15 @@ class InternalLinkModalExtension extends Extension 'editorAnchorLink', ]; + public function __construct() + { + Deprecation::noticeWithNoReplacment( + '5.4.0', + 'Will be replaced with configuration on ' . ModalController::class, + Deprecation::SCOPE_CLASS + ); + } + /** * Form for inserting internal link pages *