Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Field Layout should not alter fields placed into regions it doesn't know about.
Proposed resolution
Just don't.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | 2920394-field_layout-5.patch | 3.73 KB | tim.plunkett |
#5 | 2920394-field_layout-5-interdiff.txt | 1.22 KB | tim.plunkett |
#2 | 2920394-field_layout-2-PASS.patch | 3.55 KB | tim.plunkett |
#2 | 2920394-field_layout-2-FAIL.patch | 1.94 KB | tim.plunkett |
Comments
Comment #2
tim.plunkettComment #4
tedbowNice test coverage. Proves the problem and the fix!
1 small thing.
Before the patch the comments were altogether in 4 lines. Now they are split by the
if
statement.If seems like all 4 comment lines should be inside the if statement. With maybe a new comment as to why there would be regions that FieldLayoutBuilder doesn't know about.
Comment #5
tim.plunkettGood point! Clarified and reunified the comments.
Comment #6
tedbow@tim.plunkett thank for the change and the updated comment.
RTBC!
Comment #7
xjmAhoy. This explains things.
I tested it with older versions of the layout builder patch and confirmed that it resolves the "totally empty layout" problem. Does this mean we can remove the
hook_requirements()
disallowing them from being enabled at the same time?I fixed a comma splice on commit:
I also backported it because it's a mostly non-disruptive bugfix that should only affect code that's not in core yet and shouldn't affect anyone actually using field layout.
Comment #8
xjmThe comments aren't showing up for it but the commits aren't there. I hope VCS intergration isn't broken again.
Comment #12
tim.plunkett