You are here

public function ContentEntityBase::getRevisionId in Zircon Profile 8.0

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

Gets the revision identifier of the entity.

Return value

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

Overrides RevisionableInterface::getRevisionId

1 call to ContentEntityBase::getRevisionId()
ContentEntityBase::isNewRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Determines whether a new revision should be created on save.

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 334
Contains \Drupal\Core\Entity\ContentEntityBase.

Class

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

Namespace

Drupal\Core\Entity

Code

public function getRevisionId() {
  return $this
    ->getEntityKey('revision');
}