Get content type (bundle) of a node in the layout template

  1. This basic piece of information is hidden in hard-to-find location, in under #node or, slightly better, at #bundle
  2. 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: