Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{#
/**
* @file
* Default theme implementation for a page wrapper.
*
* For consistent wrapping to {{ page }} render in all themes.
*
* Available variables:
* - children: Contains the child elements of the page.
*
* @ingroup themeable
*/
#}
{% if children and is_admin %}
{% spaceless %}
<div id="main-canvas-wrapper" class="outside-in outside-in--wrapper">
<div id="main-canvas" class="outside-in__internal">
{{ children }}
</div>
</div>
{% endspaceless %}
{% else %}
{{ children }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.