public function UnsavedIndexConfiguration::setOriginalId in Search API 8
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
- src/
UnsavedIndexConfiguration.php, line 979
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function setOriginalId($id) {
$this->entity
->setOriginalId($id);
return $this;
}