pg-bpoint-col-header.html.twig in Paragraphs grid 8
Header for paragraphs_grid, the field grid_widget breakpoint column header.
Available variables:
- name: The name of the breakpoint, normaly hidden in display.
- size: The media query description i.e. ≥768px.
- attributes: the header attributes.
- icon_attributes: the icon attributes.
See also
1 theme call to pg-bpoint-col-header.html.twig
- GridWidget::formElement in src/
Plugin/ Field/ FieldWidget/ GridWidget.php - Returns the form for a single field widget.
File
templates/pg-bpoint-col-header.html.twigView source
- {#
- /**
- * @file
- * Header for paragraphs_grid, the field grid_widget breakpoint column header.
- *
- * Available variables:
- * - name: The name of the breakpoint, normaly hidden in display.
- * - size: The media query description i.e. ≥768px.
- * - attributes: the header attributes.
- * - icon_attributes: the icon attributes.
- *
- * @see template_preprocess_field()
- */
- #}
-
- <header{{ attributes }}>
- <h4 class="visually-hidden" aria-label="{{ name }}">{{ name }}</h4>
- <span{{ icon_attributes.addClass('device-icon') }}></span>
- <sub>{{ size }}</sub>
- </header>