Page

Extra template suggestions: one for entity type and one for the content type.

<!-- THEME DEBUG -->
<!-- THEME HOOK: 'page' -->
<!-- FILE NAME SUGGESTIONS:
   x page--node--article.html.twig
   * page--node--37.html.twig
   * page--node--%.html.twig
   x page--node.html.twig
   * page.html.twig
-->

In above example:

  • article is the content type of the node entity type 
  • page--node.html.twig is already in place by Drupal, but doesn't always follow the correct BEM naming structure. For taxonomy-terms, Drupal will output page--taxonomy--term instead of page--taxonomy-term.

Specifications

Machine name

page

Built upon

Drupal Core

Perks

Responsive
Accessible

Building blocks

HTML

Stats

Public component
112 downloads
No open issue

Contributors