You are here

public function EntityBase::getOriginalId in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\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 615

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getOriginalId() {

  // By default, entities do not support renames and do not have original IDs.
  return NULL;
}