summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/TypedData.php
diff options
context:
space:
mode:
authorAlex Pott2013-07-05 18:43:36 (GMT)
committerAlex Pott2013-07-05 18:43:36 (GMT)
commit5fc86b002978fc160b98e703b4f5c2bdc2e99792 (patch)
tree9492963f5fb293f460cfd82f8559a239dda3ef9f /core/lib/Drupal/Core/TypedData/TypedData.php
parent1c9bd12778c7e14444ef2ee5525514e441c61152 (diff)
Issue #1868004 by fago, das-peter, Berdir, EclipseGc, fubhy the cat, dixon_: Improve the TypedData API usage of EntityNG.
Diffstat (limited to 'core/lib/Drupal/Core/TypedData/TypedData.php')
-rw-r--r--core/lib/Drupal/Core/TypedData/TypedData.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php
index 8bfa215..f54f8ed 100644
--- a/core/lib/Drupal/Core/TypedData/TypedData.php
+++ b/core/lib/Drupal/Core/TypedData/TypedData.php
@@ -97,11 +97,11 @@ abstract class TypedData implements TypedDataInterface, PluginInspectionInterfac
* Implements \Drupal\Core\TypedData\TypedDataInterface::setValue().
*/
public function setValue($value, $notify = TRUE) {
- // Notify the parent of any changes to be made.
+ $this->value = $value;
+ // Notify the parent of any changes.
if ($notify && isset($this->parent)) {
$this->parent->onChange($this->name);
}
- $this->value = $value;
}
/**