You are here

public function ViewUI::setOriginalId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::setOriginalId()
  2. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::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

Overrides EntityInterface::setOriginalId

File

core/modules/views_ui/src/ViewUI.php, line 1074

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function setOriginalId($id) {
  return $this->storage
    ->setOriginalId($id);
}