Change record status: 
Project: 
Introduced in branch: 
11.4.x
Introduced in version: 
11.4.0
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.inc file 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