public RevisionableInterface::setNewRevision($value = TRUE)
Enforces an entity to be saved as a new revision.
bool $value: (optional) Whether a new revision should be saved.
\LogicException Thrown if the entity does not support revisions.
\Drupal\Core\Entity\EntityInterface::isNewRevision()
public function setNewRevision($value = TRUE);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!RevisionableInterface.php/function/RevisionableInterface::setNewRevision/8.1.x