Score:0

Convert a custom entity from RevisionableContentEntityBase to EditorialContentEntityBase in an update hook?

cn flag

I have a custom entity that was generated via the drush command. This created it as an extension of RevisionableContentEntityBase. I now have a need to add moderation states to the entity, but this is seemingly only supported via EditorialContentEntityBase.

Is there a way I can install the missing fields etc in an update hook?

The only way I have managed this locally is by reinstalling the module, and this is not viable on production as there is existing content that would need to be deleted.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.