public function EntityNG::updateOriginalValues

Updates the original values with the interim changes.

Note: This should be called by the storage controller during a save operation.

1 call to EntityNG::updateOriginalValues()
EntityNG::setCompatibilityMode in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Enables or disable the compatibility mode.

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 307
Definition of Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function updateOriginalValues() {
  foreach ($this->fields as $name => $properties) {
    foreach ($properties as $langcode => $property) {
      $this->values[$name][$langcode] = $property
        ->getValue();
    }
  }
}