Skip to content

Commit

Permalink
Merge branch '5' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 27, 2024
2 parents 0778d7b + f34f842 commit 6a874a4
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 6a874a4

Please sign in to comment.