comparison core/lib/Drupal/Core/Entity/ContentEntityBase.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 1fec387a4317
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
711 unset($this->entityKeys[$key]); 711 unset($this->entityKeys[$key]);
712 } 712 }
713 elseif (isset($this->translatableEntityKeys[$key][$this->activeLangcode])) { 713 elseif (isset($this->translatableEntityKeys[$key][$this->activeLangcode])) {
714 unset($this->translatableEntityKeys[$key][$this->activeLangcode]); 714 unset($this->translatableEntityKeys[$key][$this->activeLangcode]);
715 } 715 }
716 // If the revision identifier field is being populated with the original
717 // value, we need to make sure the "new revision" flag is reset
718 // accordingly.
719 if ($key === 'revision' && $this->getRevisionId() == $this->getLoadedRevisionId()) {
720 $this->newRevision = FALSE;
721 }
716 } 722 }
717 } 723 }
718 724
719 switch ($name) { 725 switch ($name) {
720 case $this->langcodeKey: 726 case $this->langcodeKey: