function RevisionableStorageInterface::getLatestRevisionId

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::getLatestRevisionId()
  2. 8.9.x core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::getLatestRevisionId()
  3. 11.x 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
KeyValueContentEntityStorage::getLatestRevisionId in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php

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);

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