What is a template?
As we’ve already mentioned, one of the strengths of Drupal is the clean separation between where the content is created and where it is converted into HTML pages. This is possible because, internally, Drupal uses a render engine that is capable of merging data and markup.
That render engine is Twig.
WebProfiler
The internal workings of Drupal are complex, and there is sparse documentation about how it works on the internet. To simplify our work as a Drupal Themer, we may need a tool that collects useful data from the content management system (CMS).
The Drupal contributed (contrib) module WebProfiler is what we’re looking for. Let’s install it using Composer:
ddev composer require drupal/webprofiler
After the download completes, we can enable it with Drush:
ddev drush pm:enable webprofiler
WebProfiler depends on Devel, another useful module that we’ll use in the coming sections.
If you now log in as an admin...