diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php index 5c34b04..806ae2c 100644 --- a/core/lib/Drupal/Core/TypedData/TypedData.php +++ b/core/lib/Drupal/Core/TypedData/TypedData.php @@ -231,11 +231,13 @@ public function getParent() { * {@inheritdoc} */ public function serialize() { - $that = clone $this; - // Remove the typedDataManager to reduce the size of the object when - // serialized. - unset($that->typedDataManager); - return serialize(get_object_vars($that)); + $values = array( + 'value' => $this->value, + 'definition' => $this->definition, + 'name' => $this->name, + 'parent' => $this->parent, + ); + return serialize($values); } /**