Skip to content
Snippets Groups Projects

Issue #3468769 by lhridley: Add {{ attributes }} to all occurrences of off-canvas-page-wrapper.html.twig in Drupal Core to facilitate adding attributes with theme suggestions hook_off_canvas_page_wrapper()

Open Issue #3468769 by lhridley: Add {{ attributes }} to all occurrences of off-canvas-page-wrapper.html.twig in Drupal Core to facilitate adding attributes with theme suggestions hook_off_canvas_page_wrapper()
3 files
+ 6
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -15,12 +15,13 @@
*
* Available variables:
* - children: Contains the child elements of the page.
* - attributes: Add attributes with hook_preprocess_off_canvas_page_wrapper().
*
* @ingroup themeable
*/
#}
{% if children %}
<div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas>
<div{{ attributes }} class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas>
{{ children }}
</div>
{% endif %}
Loading