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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

julien.sibi created an issue. See original summary.

  • Chi committed 25d4539 on 8.x-2.x authored by julien.sibi
    Issue #2913809 by julien.sibi: Ouput drupal_region() function using...

  • Chi committed 6a4ea3d on 8.x-2.x
    Issue #2913809 by julien.sibi, Chi: Ouput drupal_region() function using...
Chi’s picture

Title: Ouput drupal_region() function using region's twig template » Ouput drupal_region() function using region's Twig template
Version: 8.x-1.x-dev » 8.x-2.x-dev
Assigned: julien.sibi » Unassigned
Status: Needs review » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.