function StubRevisionableEntity::isNewRevision

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/StubRevisionableEntity.php \Drupal\Tests\Core\Entity\StubRevisionableEntity::isNewRevision()

Determines whether a new revision should be created on save.

Return value

bool TRUE if a new revision should be created.

Overrides RevisionableInterface::isNewRevision

File

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

Class

StubRevisionableEntity
A stub revisionable entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public function isNewRevision() : bool {
  return FALSE;
}

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