Timeline for How to get node's view mode in hook_page_attachments?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 11, 2019 at 18:57 | vote | accept | usernameabc | ||
Oct 26, 2019 at 12:00 | history | tweeted | twitter.com/StackDrupal/status/1188062876340228102 | ||
Oct 25, 2019 at 8:26 | comment | added | leymannx | Is your question rather "How can I attach a library when a node is viewed in a certain view mode?" or "How can I attach a library when a certain view mode for the current single node exists?" | |
Oct 25, 2019 at 8:23 | answer | added | leymannx | timeline score: 5 | |
Oct 25, 2019 at 6:04 | answer | added | Stefan Korn | timeline score: 1 | |
Oct 25, 2019 at 5:48 | comment | added | Stefan Korn | Drupal does not distinct between full and default here. If no full viewmode is given for a certain node type than the default viewmode is used. So you could check whether a given node type implements the full viewmode and apply your conditional logic based on this. | |
Oct 24, 2019 at 22:55 | history | asked | usernameabc | CC BY-SA 4.0 |