function EntityInterface::setOriginalId

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::setOriginalId()
  2. 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::setOriginalId()
  3. 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::setOriginalId()

Sets the original ID.

Parameters

int|string|null $id: The new ID to set as original ID. If the entity supports renames, setting NULL will prevent an update from being considered a rename.

Return value

$this

2 methods override EntityInterface::setOriginalId()
EntityBase::setOriginalId in core/lib/Drupal/Core/Entity/EntityBase.php
Sets the original ID.
ViewUI::setOriginalId in core/modules/views_ui/src/ViewUI.php
Sets the original ID.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 449

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function setOriginalId($id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.