function EntityBase::setOriginal
Overrides EntityInterface::setOriginal
2 calls to EntityBase::setOriginal()
- EntityBase::__set in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Media::prepareSave in core/
modules/ media/ src/ Entity/ Media.php - Sets the media entity's field values from the source's metadata.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 694
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function setOriginal(?EntityInterface $original) : static {
$this->originalEntity = $original;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.