"Edit layout" form missing revision log message field When I edit the layout for a given node it is missing a log message field in the revision area. Is anybody else seeing this or am I alone? In trying to diagnose:


Where that particular revision log field would be defined to check if it's defined at all. If it's not then this is probably a core bug that should be addressed.
If it does exist, where this particular form is defined to make sure that the revision log field is actually being included in the form definition.


Any insights on the above? I'm using the lightning distribution, so it's possible that there's some sort of override going on there, but I figured I should be checking in core first just in case.

The overall goal here for bounty award is to have a functional revision log message field on the form.
I've added my initial patch to the issue - https://www.drupal.org/project/drupal/issues/3033516#comment-13136184

Adding this chunk to the init method of the OverridesEntityForm seems to do the trick, at least for nodes. We'll see what core maintainers come back with, but hopefully this can help you in the meantime.

  /**
   * {@inheritdoc}
   */
  protected function init(FormStateInterface $form_state) {
    parent::init($form_state);

    $form_display = EntityFormDisplay::collectRenderDisplay($this-&gt;entity, $this-&gt;getOperation(), FALSE);
    $form_display-&gt;setComponent(OverridesSectionStorage::FIELD_NAME, [
      'type' =&gt; 'layout_builder_widget',
      'weight' =&gt; -10,
      'settings' =&gt; [],
    ]);

    $section_storage = $this-&gt;getSectionStorage();
    $entity = $section_storage-&gt;getContextValue('entity');
    $entity_type = $entity-&gt;getEntityType();
    if ($entity_type-&gt;isRevisionable()) {
      $revision_log_message_form_item = $entity_type-&gt;getRevisionMetadataKey('revision_log_message');
      $log_field_definition = $entity-&gt;getFieldDefinition($revision_log_message_form_item);
      $log_field_revision_message_form_data = $log_field_definition-&gt;getDisplayOptions('form');
      $form_display-&gt;setComponent($revision_log_message_form_item, $log_field_revision_message_form_data);  
    }

    $this-&gt;setFormDisplay($form_display, $form_state);
  }