public function ConfigEntityRevisionsRevisionStorageHandler::getLatestRevision in Config Entity Revisions 8.2
Gets the latest revision of the entity.
Parameters
int $ignore: A revision ID to ignore (optional).
Return value
int The identifier of the latest published revision of the entity, or NULL if the entity does not have a published revision.
Overrides ConfigEntityRevisionsRevisionStorageHandlerInterface::getLatestRevision
File
- src/
Entity/ Handler/ ConfigEntityRevisionsRevisionStorageHandler.php, line 222
Class
- ConfigEntityRevisionsRevisionStorageHandler
- Class ConfigEntityRevisionsRevisionStorageHandler.
Namespace
Drupal\config_entity_revisions\Entity\HandlerCode
public function getLatestRevision($ignore = NULL) {
$id = $this
->getLatestRevisionId($ignore);
return $id ? $this
->loadRevision($id) : NULL;
}