Skip to content

Commit

Permalink
API Deprecate InternalLinkModalExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 25, 2024
1 parent 58a4ae5 commit c9f4131
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/Forms/InternalLinkModalExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<ModalController>
* @deprecated 5.4.0 Will be replaced with configuration on SilverStripe\Admin\ModalController
*/
class InternalLinkModalExtension extends Extension
{
Expand All @@ -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
*
Expand Down

0 comments on commit c9f4131

Please sign in to comment.