Drupal 9: Render A Drupal Page Within A Drupal Request
A recent challenge that I faced on a project was to generate the HTML of a full Drupal page, from within a Drupal request. The project called for a template to be rendered within the structure of a Drupal theme and also to include the styles associated with that theme. At first, this doesn’t seem like a big problem, but once I started trying to figure things out it became