You are here

public function RevisionableStorageInterface::getLatestRevisionId in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::getLatestRevisionId()
  2. 9 core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::getLatestRevisionId()

Returns the latest revision identifier for an entity.

Parameters

int|string $entity_id: The entity identifier.

Return value

int|string|null The latest revision identifier or NULL if no revision could be found.

2 methods override RevisionableStorageInterface::getLatestRevisionId()
ContentEntityStorageBase::getLatestRevisionId in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Returns the latest revision identifier for an entity.
KeyValueContentEntityStorage::getLatestRevisionId in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php
Returns the latest revision identifier for an entity.

File

core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php, line 66

Class

RevisionableStorageInterface
A storage that supports revisionable entity types.

Namespace

Drupal\Core\Entity

Code

public function getLatestRevisionId($entity_id);