Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Oct 2014 at 17:55 UTC
Updated:
29 Oct 2014 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
legolasboAttached patch removes all usage of and reference to form_get_cache()
Comment #4
claudiu.cristeaGreping I found also these:
But it seems that in
core/modules/system/tests/modules/form_test/src/Controller/FormTestController.phpwe should keep the references because it tells about Drupal 6.Comment #5
legolasboRemoved the mentioned reference except for the reference in
core/modules/system/tests/modules/form_test/src/Controller/FormTestController.phpbecause i agree we should keep that one.Comment #6
claudiu.cristeaThank you. Looks good.
Comment #7
alexpottCan we combine #2355185: Remove usage of form_set_cache(). form_get_cache and form_set_cache should be removed together. Having one without the other - both patches are rtbc but they of course conflict. Let's add the form_set_cache() to this patch since this patch has the smaller nid.
Comment #8
legolasboMerged both patches
Comment #9
legolasboComment #10
alexpottNeed to re-flow this comment to be less than 80 characters
Comment #11
pushpinderchauhan commentedDone in this patch.
Comment #12
dinarcon commentedThis seems to be ready. Only the following instances remains which @claudiu.cristea suggests to keep in #4
For form_get_cache():
For form_set_cache():
Comment #13
webchickCommitted and pushed to 8.0.x. Thanks!
Comment #15
andypostNeeds follow-up
suppose service should be properly injected to controller
Comment #16
andypostd.o lagsComment #17
andypost-
Comment #18
legolasboThe formbuilder only gets used once in that class, which does not justify injecting it as far as i know. I also think injecting it would be outside of the scope of this issue, because this issue and the meta issue it's part of focus on removing direct calls to deprecated functions. I think you should open a follow-up issue if you think the formbuilder should be injected.
Comment #19
webchickAgreed. Let's do one thing at a time. :)
Comment #20
skipyT commentedwe still have one more form_get_cache in FormCachetest::testCacheToken.
I updated the patch in #2355187 to take out that one also.
Comment #21
claudiu.cristea@skipyT, see #4
Comment #22
skipyT commented@claudiu.cristea: see https://www.drupal.org/node/2355187#comment-9249859 One test was failing because of that occurrence. And it is not the FormTestController, it is the FormCacheTest. Did I misunderstood something?