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

1
2
3
public function getRevisionId() {
  return $this->getEntityKey('revision');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.