You are here

public function ConfigEntityBase::getOriginalId in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getOriginalId()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::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 EntityBase::getOriginalId

3 calls to ConfigEntityBase::getOriginalId()
ConfigEntityBase::preSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Acts on an entity before the presave hook is invoked.
ConfigEntityBundleBase::preSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Acts on an entity before the presave hook is invoked.
NodeType::postSave in core/modules/node/src/Entity/NodeType.php
Acts on a saved entity before the insert or update hook is invoked.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 121

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function getOriginalId() {
  return $this->originalId;
}