EntityBase::$originalEntity

The original unchanged entity.

This property will be set and used during the saving process.

This is named originalEntity to not clash with the deprecated magic property "original".

Type: static|null

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 60

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected ?EntityInterface $originalEntity = NULL;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.