function StubRevisionableEntity::getRevisionId

Gets the revision identifier of the entity.

Return value

int|null|string The revision identifier of the entity, or NULL if the entity does not have a revision identifier.

Overrides RevisionableInterface::getRevisionId

File

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

Class

StubRevisionableEntity
A stub revisionable entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public function getRevisionId() : int|string|null {
  return NULL;
}

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