public function ConfigEntityRevisionsRevisionStorageHandler::getLatestRevisionId in Config Entity Revisions 8.2
Gets the latest revision ID 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 ContentEntityStorageBase::getLatestRevisionId
2 calls to ConfigEntityRevisionsRevisionStorageHandler::getLatestRevisionId()
- ConfigEntityRevisionsRevisionStorageHandler::getLatestPublishedRevisionOrLatestId in src/
Entity/ Handler/ ConfigEntityRevisionsRevisionStorageHandler.php - Gets the latest revision ID of the entity.
- ConfigEntityRevisionsRevisionStorageHandler::getLatestRevision in src/
Entity/ Handler/ ConfigEntityRevisionsRevisionStorageHandler.php - Gets the latest revision of the entity.
File
- src/
Entity/ Handler/ ConfigEntityRevisionsRevisionStorageHandler.php, line 205
Class
- ConfigEntityRevisionsRevisionStorageHandler
- Class ConfigEntityRevisionsRevisionStorageHandler.
Namespace
Drupal\config_entity_revisions\Entity\HandlerCode
public function getLatestRevisionId($ignore = NULL) {
$this
->ensureRevisionStatesLoaded();
return empty($this->revisionStates) ? NULL : $this->revisionStates[0]->revision;
}