Replace editor_load() which is deprecated in 11.2.0

Created on 21 July 2025, about 1 month ago

Problem/Motivation

The function editor_load() is deprecated in 11.2.0.
See: https://www.drupal.org/node/3509245
There is one usage of the function in: modules/ckeditor5_plugin_pack_templates/src/Form/ContentTemplates/CKEditor5TemplateEntityForm.php
It should be replaced with dependency injection.

Steps to reproduce

Proposed resolution

Replace:
$editor = editor_load($format->id());
with:
$editor = $this->entityTypeManager->getStorage('editor')->load($format->id());

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇩🇪Germany lmoeni

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024