You are here

public function ModerationInformationInterface::getLatestRevisionId in Drupal 8

Returns the revision ID of the latest revision of the given entity.

Parameters

string $entity_type_id: The entity type ID.

int $entity_id: The entity ID.

Return value

int The revision ID of the latest revision for the specified entity, or NULL if there is no such entity.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId instead.

See also

https://www.drupal.org/node/3087295

1 method overrides ModerationInformationInterface::getLatestRevisionId()
ModerationInformation::getLatestRevisionId in core/modules/content_moderation/src/ModerationInformation.php
Returns the revision ID of the latest revision of the given entity.

File

core/modules/content_moderation/src/ModerationInformationInterface.php, line 98

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function getLatestRevisionId($entity_type_id, $entity_id);