- πΊπΈUnited States smustgrave
This came up as a daily BSI target
First we need to check if still an issue in D11.
If so then lets update the issue summary with the standard template and go from there.
Please adjust the title if required.
I found out that template_preprocess_HOOK functions are called for multiple scenarios.
For example the issue I ran into:
I defined a template using a theme.layouts.yml file:
comment:
label: Comment layout
category: Custom
template: templates/layouts/comment
regions:
user:
label: User
content:
label: Content
When this layout is being rendered, the template_preprocess_comment functions is called in the comment module resulting in a fatal error.
($comment = $variables['elements']['#comment']; There is no such thing.)
While this might be the desired behaviour. I feel the outcome here is wrong.
Kind regards,
Harings Rob
Active
11.0 π₯
layout_discovery.module
Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.
Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This came up as a daily BSI target
First we need to check if still an issue in D11.
If so then lets update the issue summary with the standard template and go from there.