public function Entity::getOriginalId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::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 Entity::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 Entity::getOriginalId()
- ConfigEntityBase::getOriginalId in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Gets the original ID.
File
- core/
lib/ Drupal/ Core/ Entity/ Entity.php, line 579 - Contains \Drupal\Core\Entity\Entity.
Class
- Entity
- 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;
}