region--content-above.html.twig
Same filename in other branches
Olivero's theme override to display the content above region.
Available variables:
- content: The content for this region, typically blocks.
- attributes: HTML attributes for the region <div>.
- region: The name of the region variable as defined in the theme's .info.yml file.
See also
File
-
core/
themes/ olivero/ templates/ layout/ region--content-above.html.twig
View source
- {#
- /**
- * @file
- * Olivero's theme override to display the content above region.
- *
- * Available variables:
- * - content: The content for this region, typically blocks.
- * - attributes: HTML attributes for the region <div>.
- * - region: The name of the region variable as defined in the theme's
- * .info.yml file.
- *
- * @see template_preprocess_region()
- */
- #}
-
- {%
- set classes = [
- 'region',
- 'region--' ~ region|clean_class,
- 'grid-full',
- 'layout--pass--content-medium',
- 'ie11-autorow',
- ]
- %}
-
- {% if content %}
- <div{{ attributes.addClass(classes) }}>
- {{ content }}
- </div>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.