diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php index e18edbd..b89c35d 100644 --- a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php +++ b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php @@ -109,7 +109,7 @@ public function create(array $values) { // Assign a new UUID if there is none yet. if ($this->uuidKey && !isset($entity->{$this->uuidKey}->value)) { $uuid = new Uuid(); - $entity->{$this->uuidKey}->value = $uuid->generate(); + $entity->{$this->uuidKey} = $uuid->generate(); } // Modules might need to add or change the data initially held by the new diff --git a/core/lib/Drupal/Core/Entity/Field/Type/Field.php b/core/lib/Drupal/Core/Entity/Field/Type/Field.php index 8c5451a..5d0a4ff 100644 --- a/core/lib/Drupal/Core/Entity/Field/Type/Field.php +++ b/core/lib/Drupal/Core/Entity/Field/Type/Field.php @@ -94,7 +94,7 @@ public function setValue($values, $notify = TRUE) { $this->list[$delta] = $this->createItem($delta, $value); } else { - $this->list[$delta]->setValue($value); + $this->list[$delta]->setValue($value, FALSE); } } } diff --git a/core/lib/Drupal/Core/TypedData/Type/Language.php b/core/lib/Drupal/Core/TypedData/Type/Language.php index 0127314..dd01371 100644 --- a/core/lib/Drupal/Core/TypedData/Type/Language.php +++ b/core/lib/Drupal/Core/TypedData/Type/Language.php @@ -62,7 +62,9 @@ public function setValue($value, $notify = TRUE) { } // Update the 'langcode source' property, if given. if (!empty($this->definition['settings']['langcode source'])) { - $this->parent->__set($this->definition['settings']['langcode source'], $value); + if ($notify) { + $this->parent->__set($this->definition['settings']['langcode source'], $value); + } } else { // Notify the parent of any changes to be made. diff --git a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php index c4d8109..c8fa146 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php @@ -185,6 +185,13 @@ class Node extends EntityNG implements ContentEntityInterface { public $revision_uid; /** + * The node revision log message. + * + * @var \Drupal\Core\Entity\Field\FieldInterface + */ + public $log; + + /** * Overrides \Drupal\Core\Entity\EntityNG::init(). */ protected function init() {