\Drupal\editor\Entity\Editor should use a LazyPluginCollection

Created on 13 December 2013, over 11 years ago
Updated 21 June 2025, 3 days ago

Updated: Comment #N

Problem/Motivation

\Drupal\editor\Entity\Editor::__construct() always creates a new plugin instance, and then manually invokes a hook and alter.
This is not optimal and doesn't match the architecture of any of the other config entities that use plugins.

Proposed resolution

This logic should be encapsulated in a PluginBag. Try extending DefaultSinglePluginBag.
Blocks and Actions are also 1:1 relationships.

Remaining tasks

Write the patch

User interface changes

N/A

API changes

API Addition

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component

editor.module

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024