As explained in the parent META issue ✨ [META] Expose Title and other base fields in Manage Display Active , the node template directly includes markup for the title and submitted information. This is not compatible with enabling these base fields to be configurable via the field UI. The same is true for various other entity type base fields.
As part of the solution for fixing that, we need a mechanism to reproduce a comparable and equivalent appearance. Plus we need this mechanism to be very easy to enable/configure without adding any extra dependencies. There are two cases that together can solve all core entity types looking pretty close to how they do already (excluding the aggregator module due to #3267458: Deprecate aggregator module in Drupal 9.4 → ).
There are many possible ways to solve this (see below under remaining tasks for other possibilities). For this issue, we need something simple, generating close to equivalent markup, and without forcing extra dependencies (such as Layout Builder). This unblocks the path forward for #3036862: Expose Title and other base fields in Manage Display in Drupal Core → and #3176673: Deprecate non-standard display of title and other base fields → - we can only deprecate the old way once we have created a new equivalent.
Custom formatters seem like the right answer.
baseFieldDefinitions()
, entity_form_display.*.yml
, or custom hooks.Copy the Title and Submitted formatters into core. Not much needs changing except to add tests.
We can cover some more advanced and sophisticated options for "Submitted" in follow-on issues. People can add many other possibilities in contrib modules. The [italic bracketed text] explains why each one wasn't chosen for this issue.
hook_entity_extra_field_info()
. [See below]The extra field option could work, but when examined in detail, it seems less suitable for "Submitted". It could be a good option in a Contrib module.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.