Skip to main content
6 events
when toggle format what by license comment
Jun 16, 2019 at 20:25 comment added 4uk4 @leymannx, this pattern is the same for any content entity with bundles. BTW I think both answers are valid, mine is more literal, yours considering the overall context, although it would need some clarification, machine name (fruits looks like one) or label, vocabulary from the content or field config.
Jun 16, 2019 at 13:47 comment added leymannx You are genius. But from where do you know this? Is it basically just the same pattern for every entity? Or did you dig really deep in what {{ kint() }} returned you? I asked OP to accept your answer instead.
Jun 16, 2019 at 13:40 history edited 4uk4 CC BY-SA 4.0
add label
Jun 16, 2019 at 13:40 comment added 4uk4 @leymannx, you can load the label in Twig too, because the term references the bundle config entity. I add this to the answer.
Jun 14, 2019 at 15:02 comment added leymannx Ah yeah! Unfortunately it only prints the vid, not the label.
Jun 14, 2019 at 14:08 history answered 4uk4 CC BY-SA 4.0