Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
when using the module to render a region, output's html markup is not coming from the region's twig template (region.html.twig or custom region's template).
This patch permits to add a third parameter to the drupal_region to get output coming from region's twig template.
Example :
{{ drupal_region('footer', 'yourtheme', true) }}
will output the region using its template.
Comment | File | Size | Author |
---|---|---|---|
Twig_tweak-Use-region-s-twig-template-when-rendering-region-2643614-8.x.patch | 1.42 KB | julien.sibi | |
|
Comments
Comment #4
Chi CreditAttribution: Chi commentedI think this should not be optional. Rendering a region with
region.html.twig
is rather expected behavior. I push the fixed to 8.x-2.x since it is still in RC state and added a note about this to migration guide. Thanks.