function KeyValueContentEntityStorage::getLatestRevisionId

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

Overrides RevisionableStorageInterface::getLatestRevisionId

File

core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php, line 52

Class

KeyValueContentEntityStorage
Provides a key value backend for content entities.

Namespace

Drupal\Core\Entity\KeyValueStore

Code

public function getLatestRevisionId($entity_id) {
    return NULL;
}

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