Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295330

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

$
0
0

Problem/Motivation

Looking at the entity_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


Viewing all articles
Browse latest Browse all 295330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>