Remove all FormState array access usages from EntityForm and ContentEntityForm as per #2310255: [meta] Remove ArrayAccess from FormState.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal_2315917_1.patch | 5.85 KB | xano |
Remove all FormState array access usages from EntityForm and ContentEntityForm as per #2310255: [meta] Remove ArrayAccess from FormState.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal_2315917_1.patch | 5.85 KB | xano |
Comments
Comment #1
xanoComment #3
xanoComment #5
xanoI don't know what happened. The patch still passes all tests.
Comment #6
tim.plunkettHmm. I've been working on usages of $form_state[] by the key, not by section. Please see #2316533: Add getValue/setValue/hasValue and isValueEmpty to FormState and #2315807: Remove support for path-based form redirects...
I'd much rather add the methods we need than just blindly switch to the get()/set().
Comment #7
xanoFair enough. The reason I did it for these two classes is that they are base classes and they make unit testing child classes quite a pain.
Comment #8
xjmThis is all fixed now by the other issue!