only in patch2: unchanged: --- a/core/lib/Drupal/Core/Entity/RevisionableInterface.php +++ b/core/lib/Drupal/Core/Entity/RevisionableInterface.php @@ -25,10 +25,13 @@ public function isNewRevision(); /** * Enforces an entity to be saved as a new revision. * + * A \LogicException is thrown if the entity does not support revisions. + * * @param bool $value * (optional) Whether a new revision should be saved. * * @see \Drupal\Core\Entity\EntityInterface::isNewRevision() + * @throws \LogicException */ public function setNewRevision($value = TRUE);