- πͺπΈSpain plopesc Valladolid
Patch is still applying against latest -dev branch and fixes the described bug.
Marking as RTBC.
There are a couple of issues caused by the same bug:
hook_preprocess_field()
. The expectation would be that, like any other field, the resulting markup is rendered within a field template and hook_preprocess_field()
can be used.I traced the issue to the SocialMediaLinksFieldDefaultFormatter
class's viewElements()
method, which is currently returning a render array. Typically a field formatter's viewElements()
method returns an array of render arrays (one item for each delta). Fixing this addresses both issues described above. Field templates and preprocessing become available and every field value renders. I'll be commenting with a patch that accomplishes this.
Reviewing the patch that I'll soon attach.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Patch is still applying against latest -dev branch and fixes the described bug.
Marking as RTBC.