Automatically closed - issue fixed for 2 weeks with no activity.
Follow on to ✨ Improvements to Submitted Formatter Fixed
The field wrappers don't match the markup from Drupal Core. The existing code inserts one field inside another which is quite confusing, and puts the wrappers in the wrong place.
node__meta
. Hence the submitted template would have <footer class="{{ entity_type }}__meta">
. author_attributes
not working as it isn't initialisednode.html.twig
refers to author_picture
however comment.html.twig
and submitted.html.twig
us user_picture
WSOD if comment is somehow missing subject or author.
Instead of nesting the fields, use hook_entity_view_alter()
to create a new structure $build['submitted']
that contains each of the fields separately, with their normal field wrappers. Need to forces the fields to display inline output, copying the approach used already in core with #is_inline
variable.
entity_type
.author_attributes
variable.author_picture
that duplicates user_picture
.Guard against missing fields.
Fixed
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.