Skip to content
Twig Field Finder
Theme

Term — vocabulary

Open in builder

This is a property of the entity itself, so there’s no field name to fill in.

Reads the entity directly, before field formatters run. Only works in taxonomy-term.html.twig.

  1. Snippet 1
    {{ term.bundle() }}
  2. Snippet 2
    {{ term.vid.entity.label() }}

Gotcha

bundle() gives the machine name (tags), vid.entity.label() the human name (Tags).