Get content type (bundle) of a node in the layout template
- This basic piece of information is hidden in hard-to-find location, in under #node or, slightly better, at #bundle
- To access any property that starts with a # in a template, you need to use brackets and quotation marks.
Here it is,
{{ content[’#node’].bundle }}
See also: