- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Plus one for trait and constants, but I think probably do that in two issues, trait first (easier) and constants second (not so easy)
- last update
almost 2 years ago Custom Commands Failed - @elber opened merge request.
- last update
almost 2 years ago 29,448 pass - Status changed to Needs review
almost 2 years ago 1:49pm 14 June 2023 - Status changed to Needs work
almost 2 years ago 2:27pm 14 June 2023 - 🇺🇸United States smustgrave
Nitpicky but if we are going to move can we typehint while at it
Other then that looks good!
- last update
almost 2 years ago 29,448 pass - Status changed to Needs review
almost 2 years ago 4:13pm 14 June 2023 - Status changed to RTBC
almost 2 years ago 5:03pm 14 June 2023 - Status changed to Needs work
almost 2 years ago 9:04am 15 June 2023 - last update
almost 2 years ago 29,450 pass - 🇧🇷Brazil elber Brazil
Hi @laurii to be honest I didn't understand your comment here
Should we use the trait here since that's why we are moving it to a trait and this issue is mentioned in this comment?
are you being ironic? Should I explain why we are moving the method to trait in this comment, please can you explain again?
- 🇫🇮Finland lauriii Finland
Feel free to correct if I'm wrong, but AFAIK we were moving
\Drupal\field_ui\Form\EntityViewDisplayEditForm::getFieldLabelOptions
to a trait so that we wouldn't have to hard code those values again in
\Drupal\layout_builder\Plugin\Block\FieldBlock::blockForm
. The MR moves the options to a trait but keeps the hard coded values in
\Drupal\layout_builder\Plugin\Block\FieldBlock::blockForm
, so I proposed that we would do the second step too to get rid of the hard coded values from\Drupal\layout_builder\Plugin\Block\FieldBlock::blockForm
. - First commit to issue fork.
18:39 46:06 Running- Status changed to Needs review
almost 2 years ago 5:44pm 15 June 2023 - 🇧🇷Brazil lucienchalom
Hi lauriii, I tryed to aplly the trait, tell me if I did it right?
the next step would be remove the @todo and create the followup? - Status changed to Needs work
almost 2 years ago 10:23pm 15 June 2023 - 🇺🇸United States smustgrave
For open threads in MR.
Despite the test failures think this is close!
- last update
almost 2 years ago 29,425 pass, 31 fail - Status changed to Needs review
almost 2 years ago 12:24pm 16 June 2023 - 🇧🇷Brazil lucienchalom
For some reason, all of the tests were failing on the main branch on my local enviromment, so I could not test if this change will work. but I think it will :D
- Status changed to Needs work
almost 2 years ago 12:49pm 16 June 2023 - 🇺🇸United States tim.plunkett Philadelphia
I think it's a coincidence if this passes. Field UI module is not required for Layout Builder as of #2935999: Remove Layout Builder's hard dependency on Field UI → .
I think the trait should live in Field module, and we should make sure we have test coverage for this continuing to work when Field UI is not installed - 🇧🇷Brazil lucienchalom
A question, if moved to the Field module, will be available to be used in Field_Ui?
because it is used in Drupal\field_ui\Form\EntityViewDisplayEditForm - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,486 pass - Status changed to Needs review
almost 2 years ago 3:13pm 16 June 2023 - 🇧🇷Brazil lucienchalom
The test passed!
I moved the trait to 'core/modules/field/src/GetFieldLabelOptionsTrait.php' - Status changed to RTBC
almost 2 years ago 3:18pm 16 June 2023 - 🇺🇸United States smustgrave
Opened up https://www.drupal.org/project/drupal/issues/3367302 📌 make the allowed values into constants Active for the follow up
- last update
almost 2 years ago 29,486 pass - last update
almost 2 years ago 29,499 pass - last update
almost 2 years ago 29,505 pass - Status changed to Needs work
almost 2 years ago 6:33am 22 June 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Thanks folks!
Left a comment on the MR
Will be good to use this in ✨ Add the notion of a 'configured layout builder block' to solve a number of content-editor and performance pain points Active which is where I came across the todo
- last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed - Status changed to Needs review
almost 2 years ago 11:11am 22 June 2023 - 🇧🇷Brazil lucienchalom
Thank you, I updated the name and function based on review.
Please review again? - Status changed to Needs work
almost 2 years ago 11:52am 22 June 2023 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- last update
almost 2 years ago 29,531 pass - Status changed to Needs review
almost 2 years ago 12:00pm 22 June 2023 - 🇧🇷Brazil lucienchalom
I am so sorry, I forgot about consequences of renaming a file!
Thank you bot.
Fixed now. - Status changed to RTBC
almost 2 years ago 2:31pm 22 June 2023 -
larowlan →
committed 4aa426d9 on 11.x
Issue #2933924 by lucienchalom, elber, smustgrave, tim.plunkett,...
-
larowlan →
committed 4aa426d9 on 11.x
- Status changed to Fixed
almost 2 years ago 3:25am 23 June 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Fixed on commit.
We shouldn't be referring to where a piece of code came from in documentation, we can use git history for that.
Instead we should be documenting the purpose of the trait.
Felt it wasn't pushing back just for that so changed on commit.
diff --git a/core/modules/field/src/FieldLabelOptionsTrait.php b/core/modules/field/src/FieldLabelOptionsTrait.php index ba42d528a60..275b08e8ecc 100644 --- a/core/modules/field/src/FieldLabelOptionsTrait.php +++ b/core/modules/field/src/FieldLabelOptionsTrait.php @@ -3,7 +3,7 @@ namespace Drupal\field; /** - * Method getFieldLabelOptions originally from EntityViewDisplayEditForm file. + * Provides a trait for the valid field label options. */ trait FieldLabelOptionsTrait {
Committed 4aa426d and pushed to 11.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.