patterns-meta-information.html.twig in UI Patterns 8
UI Pattern meta information.
2 theme calls to patterns-meta-information.html.twig
- PatternsLibraryController::overview in modules/
ui_patterns_library/ src/ Controller/ PatternsLibraryController.php - Render pattern library page.
- PatternsLibraryController::single in modules/
ui_patterns_library/ src/ Controller/ PatternsLibraryController.php - Render pattern library page.
File
modules/ui_patterns_library/templates/patterns-meta-information.html.twigView source
- {#
- /**
- * @file
- * UI Pattern meta information.
- */
- #}
-
- {% if pattern is not empty %}
-
- {# Pattern name and desciption. #}
- <h3 class="pattern-preview__label">{{ pattern.label }}</h3>
- <p class="pattern-preview__description">{{ pattern.description }}</p>
-
- {# Pattern fields descriptions. #}
- <table class="pattern-preview__fields">
- <thead>
- <tr>
- <th>{{ "Field"|t }}</th>
- <th>{{ "Label"|t }}</th>
- <th>{{ "Type"|t }}</th>
- <th>{{ "Description"|t }}</th>
- </tr>
- </thead>
- <tbody>
- {% for field in pattern.fields %}
- <tr>
- <td><code>{{ field.name }}</code></td>
- <td>{{ field.label }}</td>
- <td><code>{{ field.type }}</code></td>
- <td>{{ field.description }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
-
- {% endif %}