Problem/Motivation
I got this error when importing content that includes Content Moderation State entities:
Error: Call to undefined method stdClass::save() in
/Users/samuelmortenson/repos/tome-dev/drupal/core/modules/content_moderation/src/Entity/ContentModerationState.
php on line 206
You really shouldn't use Content Moderation and Tome Sync together in the first place, because Drupal revisions aren't really relevant, but this is a bug nevertheless.
Proposed resolution
We need to properly link content to moderation states in the index.json file.
Remaining tasks
Write a patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
TBD.
Comments
Comment #2
samuel.mortensonMaybe we can just exclude these entities from export - they're internal and don't seem to change functionality when removed (they're re-created automatically).
Comment #3
samuel.mortensonMakes sense to me. Content Moderation is quirky.
Comment #5
samuel.mortenson