diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php index 32baa80..72815e9 100644 --- a/core/lib/Drupal/Core/TypedData/TypedData.php +++ b/core/lib/Drupal/Core/TypedData/TypedData.php @@ -220,8 +220,7 @@ public function getParent() { * The data, without any wrapping Typed Data object. */ public function unwrap() { - $type_definition = $this->getDefinition($definition->getDataType()); - if (!empty($type_definition['wrapped'])) { + if (!empty($this->definition['wrapped'])) { return $data->getValue(); } return $data;