Editor entity class should document that it expects a 1-1 relationship with matching IDs with a format entity

Created on 29 November 2023, about 1 year ago
Updated 4 January 2024, 12 months ago

Problem/Motivation

Looking at the editor_load() function and the places that call it, there is an assumption that an editor entity has the same entity ID as the filter format entity it is for.

In other words, IF a filter format entity has an editor, then the editor will have the same ID.

This goes against what one might think from looking at the UI -- there it looks like the admin user is *choosing* an editor entity to use with the format. What's in fact happening is that the editor plugin is being chosen. The editor entity then gets the chosen plugin ID as a property, but the editor entity ID is unchanged.

This should be documented on the Editor entity class.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.2

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024