function StubRevisionableEntity::updateLoadedRevisionId

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

Updates the loaded Revision ID with the revision ID.

This method should not be used, it could unintentionally cause the original revision ID property value to be lost.

@internal

Return value

$this

Overrides RevisionableInterface::updateLoadedRevisionId

File

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

Class

StubRevisionableEntity
A stub revisionable entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public function updateLoadedRevisionId() : static {
  return $this;
}

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