ContentEntityBase::getRevisionId

public 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

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getRevisionId() {
  return $this->getEntityKey('revision');
}
doc_Drupal
2016-10-29 08:56:56
Comments
Leave a Comment

Please login to continue.