function ContentEntityBase::getRevisionId
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getRevisionId()
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getRevisionId()
- 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getRevisionId()
Gets the revision identifier of the entity.
Return value
int|null|string The revision identifier of the entity, or NULL if the entity does not have a revision identifier.
Overrides RevisionableInterface::getRevisionId
3 calls to ContentEntityBase::getRevisionId()
- ContentEntityBase::isNewRevision in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Determines whether a new revision should be created on save.
- ContentEntityBase::onChange in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Reacts to changes to a field.
- ContentEntityBase::updateLoadedRevisionId in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Updates the loaded Revision ID with the revision ID.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 452
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function getRevisionId() {
return $this->getEntityKey('revision');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.