You are here

public function UpdateUtilsInterface::getLatestRevision in Scheduled Updates 8

Loads the latest revision of a specific entity.

Parameters

string $entity_type_id: The entity type ID.

int $entity_id: The entity ID.

Return value

\Drupal\Core\Entity\ContentEntityInterface|null The latest entity revision or NULL, if the entity type / entity doesn't exist.

1 method overrides UpdateUtilsInterface::getLatestRevision()
UpdateUtils::getLatestRevision in src/UpdateUtils.php
Loads the latest revision of a specific entity.

File

src/UpdateUtilsInterface.php, line 133

Class

UpdateUtilsInterface
Service to determine information about Scheduled Update Types

Namespace

Drupal\scheduled_updates

Code

public function getLatestRevision($entity_type_id, $entity_id);