public function ConfigEntityRevisionsRevisionStorageHandler::getLatestPublishedRevisionOrLatestId 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 ConfigEntityRevisionsRevisionStorageHandlerInterface::getLatestPublishedRevisionOrLatestId
File
- src/
Entity/ Handler/ ConfigEntityRevisionsRevisionStorageHandler.php, line 238
Class
- ConfigEntityRevisionsRevisionStorageHandler
- Class ConfigEntityRevisionsRevisionStorageHandler.
Namespace
Drupal\config_entity_revisions\Entity\HandlerCode
public function getLatestPublishedRevisionOrLatestId($ignore = NULL) {
$revision_id = $this
->getLatestPublishedRevisionId($ignore);
return $revision_id ? $revision_id : $this
->getLatestRevisionId($ignore);
}