public function ModerationInformationInterface::getLatestRevision in Config Entity Revisions 8.2
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.
File
- src/
ModerationInformationInterface.php, line 65
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\config_entity_revisionsCode
public function getLatestRevision($entity_type_id, $entity_id);