You are here

public function TranslatableRevisionableStorageInterface::getLatestTranslationAffectedRevisionId in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/TranslatableRevisionableStorageInterface.php \Drupal\Core\Entity\TranslatableRevisionableStorageInterface::getLatestTranslationAffectedRevisionId()
  2. 10 core/lib/Drupal/Core/Entity/TranslatableRevisionableStorageInterface.php \Drupal\Core\Entity\TranslatableRevisionableStorageInterface::getLatestTranslationAffectedRevisionId()

Returns the latest revision affecting the specified translation.

Parameters

int|string $entity_id: The entity identifier.

string $langcode: The language code of the translation.

Return value

int|string|null A revision ID or NULL if no revision affecting the specified translation could be found.

2 methods override TranslatableRevisionableStorageInterface::getLatestTranslationAffectedRevisionId()
ContentEntityStorageBase::getLatestTranslationAffectedRevisionId in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Returns the latest revision affecting the specified translation.
KeyValueContentEntityStorage::getLatestTranslationAffectedRevisionId in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php
Returns the latest revision affecting the specified translation.

File

core/lib/Drupal/Core/Entity/TranslatableRevisionableStorageInterface.php, line 44

Class

TranslatableRevisionableStorageInterface
A storage that supports translatable and revisionable entity types.

Namespace

Drupal\Core\Entity

Code

public function getLatestTranslationAffectedRevisionId($entity_id, $langcode);