- ๐ฉ๐ชGermany Christian.wiedemann
Christian.wiedemann โ made their first commit to this issueโs fork.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
We just ran into this and I think it would also make a lot of sense to pass the
#view_mode
to the layout theme.Currently, that's not possible, but there are several cases, for example in layout_paragraphs, where you'd need to determine which view mode the current paragraph, which contains the layout (and thereby the layout) is rendered in!
So that in
hook_preprocess_layout(&$variables){}
we can determine the view mode of the entity the current layout is rendered in:$variables['view_mode'];
Should we have a separate issue for that, or solve it here? I think it's quite close to this issue?