Drupal investigation

status-messages.html.twig 992B

12345678910111213141516171819202122232425262728293031
  1. {% extends "@classy/misc/status-messages.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Default theme implementation for status messages.
  6. *
  7. * Displays status, error, and warning messages, grouped by type.
  8. *
  9. * An invisible heading identifies the messages for assistive technology.
  10. * Sighted users see a colored box. See http://www.w3.org/TR/WCAG-TECHS/H69.html
  11. * for info.
  12. *
  13. * Add an ARIA label to the contentinfo area so that assistive technology
  14. * user agents will better describe this landmark.
  15. *
  16. * Available variables:
  17. * - message_list: List of messages to be displayed, grouped by type.
  18. * - status_headings: List of all status types.
  19. * - display: (optional) May have a value of 'status' or 'error' when only
  20. * displaying messages of that specific type.
  21. */
  22. #}
  23. {% block messages %}
  24. {% if message_list is not empty %}
  25. {{ attach_library('bartik/messages') }}
  26. <div class="messages__wrapper layout-container">
  27. {{ parent() }}
  28. </div>
  29. {% endif %}
  30. {% endblock messages %}