function StubRevisionableEntity::getLoadedRevisionId

Gets the loaded Revision ID of the entity.

Return value

int The loaded Revision identifier of the entity, or NULL if the entity does not have a revision identifier.

Overrides RevisionableInterface::getLoadedRevisionId

File

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

Class

StubRevisionableEntity
A stub revisionable entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public function getLoadedRevisionId() : ?int {
    return NULL;
}

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