Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityInterface.php

function 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 388

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function setOriginalId($id);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal