You are here

public function ContentEntityBase::getLoadedRevisionId in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getLoadedRevisionId()

Gets the loaded Revision ID of the entity.

Return value

int The loaded Revision identifier of the entity, or NULL if the entity does not have a revision identifier.

Overrides RevisionableInterface::getLoadedRevisionId

4 calls to ContentEntityBase::getLoadedRevisionId()
ContentEntityBase::isLatestRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Checks if this entity is the latest revision.
ContentEntityBase::isLatestTranslationAffectedRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Checks whether this is the latest revision affecting this translation.
ContentEntityBase::onChange in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Reacts to changes to a field.
ContentEntityBase::setNewRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Enforces an entity to be saved as a new revision.

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 313

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getLoadedRevisionId() {
  return $this->loadedRevisionId;
}