Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Deprecate InternalLinkModalExtension #3030

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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