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

Allow entity types to be flagged as read-only

$
0
0

Sometimes, when integrating remote data, entities of an entity-type are read-only, i.e. save() and delete() is not implemented. As this is a rather rare use-case, I don't think this warrants dealing with a separate interface or something. Still, I think it would be valuable to have an "official" flag so that at least entities can be marked accordingly and contribs could easily reflect that.

Then, we can document for save() and delete() to throw exceptions if they are invoked for a read-only entity.


Viewing all articles
Browse latest Browse all 293292

Trending Articles



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