summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2014-08-20 12:32:33 (GMT)
committerJennifer Hodgdon2014-08-20 12:32:47 (GMT)
commitf485925f181b82c73e7a7614364d22cb4e580e98 (patch)
treefe29c5172f5616df343c736e896a3c8753290fe1
parent234382b6db85cc0993aecf6e75bc2b351ad99bff (diff)
Issue #2324083 by er.pushpinderrana, martin_q: Fix up description of return value from NestedArray::getValue()
-rw-r--r--core/lib/Drupal/Component/Utility/NestedArray.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/lib/Drupal/Component/Utility/NestedArray.php b/core/lib/Drupal/Component/Utility/NestedArray.php
index 8e00e06..c494c24 100644
--- a/core/lib/Drupal/Component/Utility/NestedArray.php
+++ b/core/lib/Drupal/Component/Utility/NestedArray.php
@@ -34,10 +34,10 @@ class NestedArray {
* $value = NestedArray::getValue($form, $parents);
* @endcode
*
- * The return value will be NULL, regardless of whether the actual value is
- * NULL or whether the requested key does not exist. If it is required to know
- * whether the nested array key actually exists, pass a third argument that is
- * altered by reference:
+ * A return value of NULL is ambiguous, and can mean either that the requested
+ * key does not exist, or that the actual value is NULL. If it is required to
+ * know whether the nested array key actually exists, pass a third argument
+ * that is altered by reference:
* @code
* $key_exists = NULL;
* $value = NestedArray::getValue($form, $parents, $key_exists);