- Issue created by @davisben
- last update
almost 2 years ago 53 pass, 2 fail - @davisben opened merge request.
- Status changed to Needs review
almost 2 years ago 8:33pm 27 April 2023 - last update
almost 2 years ago 55 pass
A database exception is thrown when saving a content entity that isn't revisionable. I came across this issue while using the Config Pages module. This module checks if an entity type is revisionable by checking if its class is an instance of RevisionableInterface. RevisionableInterface is inherited through ContentEntityInterface regardless of if the entity type is revisionable.
Use the isRevisionable() method of the entity type definition to check if the entity type is revisionable.
Needs review
2.0
Code