public ContentEntityBase::updateOriginalValues()
Updates the original values with the interim changes.
public function updateOriginalValues() { if (!$this->fields) { return; } foreach ($this->getFieldDefinitions() as $name => $definition) { if (!$definition->isComputed() && !empty($this->fields[$name])) { foreach ($this->fields[$name] as $langcode => $item) { $item->filterEmptyItems(); $this->values[$name][$langcode] = $item->getValue(); } } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityBase.php/function/ContentEntityBase::updateOriginalValues/8.1.x