function TranslatableRevisionableStorageInterface::getLatestTranslationAffectedRevisionId

Same name in other branches
  1. 9 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()
  3. 11.x 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);

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