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.

CommentFileSizeAuthor
#3 3017461-3.patch1.6 KBsamuel.mortenson

Comments

samuel.mortenson created an issue. See original summary.

samuel.mortenson’s picture

Maybe 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).

samuel.mortenson’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

Makes sense to me. Content Moderation is quirky.

samuel.mortenson’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.