I have rendered regions in page.html.twig using {{ page.region_name }}
. But it doesn't work for the custom modules template. How can I render a region in custom template?
1 Answer
I'd recommend to install the Twig Tweak module: It provides (amongst others) an operator for that:
{{ drupal_region('my_region_name') }}