The NestedArray::unsetValue() page shows the following sentence.
Instead, use this helper function:
NestedArray::unset_nested_value($form, $parents, $element);
The method name isn't correct. It's NestedArray::unsetValue().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-correct-method-name-3249859-2.patch | 644 bytes | avpaderno |
Comments
Comment #2
avpadernoI checked the file, and that is the only reference to a wrong method name.
I created the patch for Drupal 9.4.x. I cannot link the documentation for that Drupal version, as a.d.o doesn't have documentation for Drupal 9.4.x.
Comment #3
vicheldt commentedI will review this issue
Comment #4
vicheldt commentedJust read the documentation, I think it is ok, there's nowhere else in this file that says unset_nested_value.
Comment #6
avpadernoNone of the errors reported for the tests are caused by this patch, since it's not changing any schema.
Comment #7
alexpottCommitted and pushed 1752de41acf to 10.0.x and 7aa1ef1d81b to 9.4.x and 543dc50b1ed to 9.3.x. Thanks!