By claudiu.cristea on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Issue links:
Description:
- The
editor_image_upload_settings_form()is deprecated. Its logic is moved to a service:\Drupal\editor\EditorImageUploadSettingsTrait::getForm() - The whole
core/modules/editor/editor.admin.incfile is deprecated.
Before
class Image extends CKEditor5PluginDefault implements CKEditor5PluginConfigurableInterface {
...
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form_state->loadInclude('editor', 'admin.inc');
return editor_image_upload_settings_form($form_state->get('editor'));
}
...
}
After
class Image extends CKEditor5PluginDefault implements CKEditor5PluginConfigurableInterface {
public function __constructor() {
...
protected EditorImageUploadSettings $editorImageUploadSettings,
}
...
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return $this->editorImageUploadSettings->getForm($form_state->get('editor'));
}
...
}
Impacts:
Module developers
Site templates, recipes and distribution developers