function EntityInterface::setOriginal
Sets the original unchanged entity.
This method may be used as a performance optimization when unchanged entity is already available.
Parameters
\Drupal\Core\Entity\EntityInterface|null $original: The unchanged entity.
Return value
$this
2 methods override EntityInterface::setOriginal()
- EntityBase::setOriginal in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Sets the original unchanged entity.
- ViewUI::setOriginal in core/
modules/ views_ui/ src/ ViewUI.php - Sets the original unchanged entity.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityInterface.php, line 472
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public function setOriginal(?EntityInterface $original) : static;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.