Closed (won't fix)
Project:
Drupal core
Version:
8.6.x-dev
Component:
content_moderation.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Nov 2017 at 08:02 UTC
Updated:
12 Feb 2018 at 13:53 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
dpiAttached a patch:
Comment #3
timmillwoodIt was decided during UX review that the moderation state widget should appear in the footer region, replacing the publishing status checkbox.
Maybe instead we should change
->setDisplayConfigurable('form', TRUE)to->setDisplayConfigurable('form', FALSE)in\Drupal\content_moderation\EntityTypeInfo::entityBaseFieldInfo. Making it impossible to reorder the content moderation widget.Comment #4
dpiComment #6
dpi#4 is expected failure.
@timmillwood
Whatever the case, the current situation needs improvement.
Seems unfortunate that this limitation is in place, if a site builder wants it in a special region, why cant he use a custom layout for it?
Comment #7
jibranAfter
->setDisplayConfigurable('form', TRUE)and removing the field from the form I see the following error.Comment #8
timmillwood@jibran - @sam152 has a patch for that somewhere.
Comment #9
sam152 commented#2914839: The current moderation state in the "meta" region on content entity forms is coupled to the moderation_state field widget.
Comment #11
wim leersAFAICT this exact bug was already reported exactly one year earlier: #2829265: The weight of moderation_state field is not changeable …
Comment #12
jibranReroll after #2914839: The current moderation state in the "meta" region on content entity forms is coupled to the moderation_state field widget..
Comment #13
dpi...couldnt discover the other because it was in the Lightning queue :/
Comment #14
berdirThis element behaves the same as the published field, and it was moved there to provide a good UX by default, because this allowed us to make sure it remains close to the save button and separate it from the rest of the form with a vertical line.
I understand that this doesn't work for everyone, but was done like that based on the input of the usability team. I don't think this patch has a chance to be committed* in its current form, it might be an improvement for some but it will also be a regression for at least as many other sites.
If you don't like it there then you could for now implement a form alter or someone could create a contrib module that would do that for the time being.
I think a more realistic way to make everyone happy is to try and use the layout_builder module also for the form display and not just the view display and move all those special cases (including all the vertical tabs and so on) into configuration instead of code. This field is just one example of many that have existing hardcoded assumptions about the layout: The revision checkbox + log message, the path module, comment settings and so on. Many of those don't work for everyone, especially for forms that are not using the administration theme (layout per-theme does introduce another layer of complexity to layout builder that I think it currently can't handle though..)
* That is my personal opinion.
Comment #15
timmillwood@Berdir +1 to that.
There was a lot of work and discussions gone into the "footer" part of the content entity form and how the publishing status and moderation state would use it.
We at least need to bring in the UX team here again.
I did suggest in #3 we should prevent the reordering of the moderation state field, much like we do with the publishing status field. Wouldn't this stop all the discussion?
Comment #16
jibranYeah, this gives me more control. Let's won't fix this.