Problem/Motivation
The unofficial API for associating temporary data to entity objects is being considered for deprecation in #2896474: Provide an API to temporarily associate data with an entity. Workspaces uses it to keep track of entities that were created as published inside a workspace, so it can unpublish the default (Live) revision.
Steps to reproduce
Look at \Drupal\workspaces\Hook\EntityOperations::entityPresave().
Proposed resolution
Remove the usage of temporary entity data.
Remaining tasks
Review.
User interface changes
Nope.
Introduced terminology
N/A
API changes
Nope.
Data model changes
Nope.
Release notes snippet
N/A
Issue fork drupal-3498115
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3498115-fix-usage-of-temporary-entity-data
changes, plain diff MR !10842
Comments
Comment #3
amateescu commentedOpened a MR to fix this. It doesn't need any new test coverage, this behavior is already tested in a lot of places.
Comment #4
smustgrave commentedSeems like a good refactor to me.
Comment #7
catchCommitted/pushed to 11.x, thanks!
I don't think we need to backport this anywhere, but re-open if I've missed something.