Skip to content

Commit

Permalink
API Deprecate methods on ModalController (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 26, 2024
1 parent 8c1861c commit 0c04234
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/ModalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 0c04234

Please sign in to comment.