Closed (fixed)
Project:
Drupal core
Version:
10.2.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2023 at 12:12 UTC
Updated:
12 Dec 2023 at 07:54 UTC
Jump to comment: Most recent
Comments
Comment #3
alexpottComment #4
birchervery cool!
Could we revert the
r/rw => 0/1conversion ?I think it would serve as a neat example.
Comment #5
alexpottI've addressed @bircher and @andypost's reviews. This is ready for another round.
Comment #7
alexpottComment #8
borisson_This is a very useful changes and the change itself looks very readable as well, what I don't understand is that we disallowed callables before because of serialisation.
This is the old comment, is that no longer true?
Comment #9
wim leers#4++
#8: That is indeed no longer true. See the
::fromForm()method that @alexpott introduced. I left a comment about it on the MR that may be helpful in understanding it.Just left a few nits/questions, but this is 90% ready IMHO.
Comment #10
alexpottAddressed all review points.
Comment #11
wim leersAFAICT
is causing the test failures.
But I see no more occurence? 😳 WTF!
EDIT: LOL, @alexpott just pushed the fix at https://git.drupalcode.org/project/drupal/-/merge_requests/5251/diffs?co... — that's why 🤣
This looks like an excellent improvement! 👍
Comment #15
catchVery nice. Had to have a couple of read throughs to figure out what was going on, but very nifty. Committed/pushed to 11.x and cherry-picked to 10.2.x, thanks!
Comment #16
alexpottI've updated https://www.drupal.org/node/3373502
Comment #18
lauriiiIt looks like this may have caused the
\Drupal\Core\Form\ConfigTargetto not be fully serializable: #3408120: \Drupal\Core\Form\ConfigTarget is not fully serializable.