public function ModerationInformationInterface::getLatestRevision in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/ModerationInformationInterface.php \Drupal\workbench_moderation\ModerationInformationInterface::getLatestRevision()
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 ModerationInformationInterface::getLatestRevision()
- ModerationInformation::getLatestRevision in src/
ModerationInformation.php - Loads the latest revision of a specific entity.
File
- src/
ModerationInformationInterface.php, line 144
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\workbench_moderationCode
public function getLatestRevision($entity_type_id, $entity_id);