function StubRevisionableEntity::setNewRevision

Enforces an entity to be saved as a new revision.

Parameters

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

Overrides RevisionableInterface::setNewRevision

File

core/tests/Drupal/Tests/Core/Entity/StubRevisionableEntity.php, line 25

Class

StubRevisionableEntity
A stub revisionable entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public function setNewRevision($value = TRUE) : void {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.