function EntityBase::getOriginal
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getOriginal()
8 calls to EntityBase::getOriginal()
- BlockContent::preSaveRevision in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Acts on a revision before it gets saved.
- FieldConfig::preSave in core/
modules/ field/ src/ Entity/ FieldConfig.php - Overrides \Drupal\Core\Entity\EntityBase::preSave().
- FieldStorageConfig::preSaveUpdated in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Prepares saving an updated field definition.
- Media::hasSourceFieldChanged in core/
modules/ media/ src/ Entity/ Media.php - Determines if the source field value has changed.
- 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 696
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getOriginal() : ?static {
return $this->originalEntity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.