Timeline for Get node ID or URL in Twig on field level
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 23, 2019 at 12:26 | vote | accept | Benjamin | ||
Jul 23, 2019 at 12:26 | |||||
Jul 17, 2019 at 14:16 | vote | accept | Benjamin | ||
Jul 17, 2019 at 14:16 | |||||
Jul 17, 2019 at 13:29 | comment | added | leymannx |
@Benjamin – That's what I asked under @4k4's answer. I guess fields can be shared across entities (but not sure about that), then an additional check for node would be nice. But from a security point of view there's no difference.
|
|
Jul 17, 2019 at 13:25 | comment | added | Benjamin | Is there any disadvantage (e.g. security) including the URL via element['#object'] without preprocessing (like suggested in the answers above)? | |
Jul 17, 2019 at 13:17 | history | answered | leymannx | CC BY-SA 4.0 |