Issue #3231341 by Spokje, gaurav.kapoor, Wim Leers, xjm, catch: Deprecate...
Issue #3231341 by Spokje, gaurav.kapoor, Wim Leers, xjm, catch: Deprecate EditorLinkDialog, EditorImageDialog and EditorMediaDialog in Drupal 10.1 for removal in Drupal 11
%Drupal\\media\\Form\\EditorMediaDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493%
%Drupal\\editor\\Form\\EditorImageDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493%
%Drupal\\editor\\Form\\EditorLinkDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493%
@trigger_error(__NAMESPACE__.'\EditorImageDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493',E_USER_DEPRECATED);
@trigger_error(__NAMESPACE__.'\EditorLinkDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493',E_USER_DEPRECATED);
Changes for core/modules/editor/tests/src/Kernel/EditorDeprecationTest.php: 42 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
<?php
namespaceDrupal\Tests\editor\Kernel;
useDrupal\editor\Form\EditorImageDialog;
useDrupal\editor\Form\EditorLinkDialog;
useDrupal\KernelTests\KernelTestBase;
/**
* Tests the deprecations in Drupal\editor.
*
* @group editor
* @group legacy
*/
classEditorDeprecationTestextendsKernelTestBase{
/**
* {@inheritdoc}
*/
protectedstatic$modules=['editor'];
/**
* Tests the deprecation of the Drupal\editor\Form\EditorLinkDialog class.
*
* @see EditorLinkDialog
*/
publicfunctiontestEditorLinkDialog():void{
$this->expectDeprecation('Drupal\editor\Form\EditorLinkDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493');
newEditorLinkDialog();
}
/**
* Tests the deprecation of the Drupal\editor\Form\EditorImageDialog class.
*
* @see EditorImageDialog
*/
publicfunctiontestEditorImageDialog():void{
$this->expectDeprecation('Drupal\editor\Form\EditorImageDialog is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/project/drupal/issues/3291493');