function EntityBase::getOriginalId
Gets the original ID.
Return value
int|string|null The original ID, or NULL if no ID was set or for entity types that do not support renames.
Overrides EntityInterface::getOriginalId
1 call to EntityBase::getOriginalId()
- ContentEntityBase::hasTranslationChanges in core/lib/ Drupal/ Core/ Entity/ ContentEntityBase.php 
- Determines if the current translation of the entity has unsaved changes.
1 method overrides EntityBase::getOriginalId()
- ConfigEntityBase::getOriginalId in core/lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php 
- Gets the original ID.
File
- 
              core/lib/ Drupal/ Core/ Entity/ EntityBase.php, line 574 
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getOriginalId() {
  // By default, entities do not support renames and do not have original IDs.
  return NULL;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
