RevisionableInterface::setNewRevision

public RevisionableInterface::setNewRevision($value = TRUE)

Enforces an entity to be saved as a new revision.

Parameters

bool $value: (optional) Whether a new revision should be saved.

Throws

\LogicException Thrown if the entity does not support revisions.

See also

\Drupal\Core\Entity\EntityInterface::isNewRevision()

File

core/lib/Drupal/Core/Entity/RevisionableInterface.php, line 31

Class

RevisionableInterface
Provides methods for an entity to support revisions.

Namespace

Drupal\Core\Entity

Code

public function setNewRevision($value = TRUE);
doc_Drupal
2016-10-29 09:38:30
Comments
Leave a Comment

Please login to continue.