Contact page layout

So far, we have been working with mainly content types and blocks. Content created using any of our content types generates a Node and a Twig template with it. However, contact forms generate a page for us that is not quite like what we are used to working with. The only way for us to add additional content such as our Callout block or Google map is by using blocks. This requires us to rethink the layout of the Contact page a little.

We can begin by inspecting the markup to see what Twig templates Drupal is providing us.

Contact page layout

It appears that the Contact Us form is output as a form element and is assigned to our Main content region. ...

Get Drupal 8 Theming with Twig now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.