public ConfigEntityBase::setOriginalId($id)
Sets the original ID.
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.
$this
Overrides Entity::setOriginalId
public function setOriginalId($id) { // Do not call the parent method since that would mark this entity as no // longer new. Unlike content entities, new configuration entities have an // ID. // @todo https://www.drupal.org/node/2478811 Document the entity life cycle // and the differences between config and content. $this->originalId = $id; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::setOriginalId/8.1.x