diff --git a/src/Form/SubFormState.php b/src/Form/SubFormState.php index 6723c57..629ac99 100644 --- a/src/Form/SubFormState.php +++ b/src/Form/SubFormState.php @@ -291,10 +291,12 @@ class SubFormState implements FormStateInterface { * {@inheritdoc} */ public function &getValue($key, $default = NULL) { - if ($this->hasValue($key)) { - return $this->values[$key]; + $exists = NULL; + $value = &NestedArray::getValue($this->getValues(), (array) $key, $exists); + if (!$exists) { + $value = $default; } - return FALSE; + return $value; } /**