From 0c04234d5e555f7fcde073d410dde1c598507f8c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:30:32 +1300 Subject: [PATCH] API Deprecate methods on ModalController (#1861) --- code/ModalController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ModalController.php b/code/ModalController.php index 1ed88c5c3..d819c0be8 100644 --- a/code/ModalController.php +++ b/code/ModalController.php @@ -79,9 +79,11 @@ public function getName() * Builds and returns the external link form * * @return Form + * @deprecated 2.4.0 Will be replaced with linkModalForm() */ public function EditorExternalLink() { + Deprecation::noticeWithNoReplacment('2.4.0', 'Will be replaced with linkModalForm()'); // Show link text field if requested $showLinkText = $this->controller->getRequest()->getVar('requireLinkText'); $factory = EditorExternalLinkFormFactory::singleton(); @@ -96,9 +98,11 @@ public function EditorExternalLink() * Builds and returns the external link form * * @return Form + * @deprecated 2.4.0 Will be replaced with linkModalForm() */ public function EditorEmailLink() { + Deprecation::noticeWithNoReplacment('2.4.0', 'Will be replaced with linkModalForm()'); // Show link text field if requested $showLinkText = $this->controller->getRequest()->getVar('requireLinkText'); $factory = EditorEmailLinkFormFactory::singleton();