You are here

quail_api_results.html.twig in Quail API 8

Default theme implementation to display a listing of validation results.

This displays validation results for a single display level.

Available Variables:

Content Variables:

  • quail_severity_id: The error id of the display level whose results this represents.
  • quail_severity_machine_name: The error id of the display level whose results this represents.
  • quail_severity_human_name: The error id of the display level whose results this represents.
  • quail_severity_description: The description of the display level whose results this represents.
  • quail_severity_results: An array containing the results for this display test_problems.
  • quail_renderred_tests: An array of the renderred test data results as passed to the quail_api_test theme.

Styling Variables:

  • quail_base_class: A generated, generic, css class.
  • quail_specific_class: A generated, somewhat unique, css class.
  • quail_markup_format: The filter format to use for check_markup calls.
  • quail_title_block: The type of block in which the title is.
  • quail_display_title: Define whether or not to display the title block.
  • quail_display_description: Define whether or not to display the title block.

File

templates/quail_api_results.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. *
  5. * Default theme implementation to display a listing of validation results.
  6. *
  7. * This displays validation results for a single display level.
  8. *
  9. * Available Variables:
  10. *
  11. * Content Variables:
  12. * - quail_severity_id: The error id of the display level whose results this
  13. * represents.
  14. * - quail_severity_machine_name: The error id of the display level whose
  15. * results this represents.
  16. * - quail_severity_human_name: The error id of the display level whose results
  17. * this represents.
  18. * - quail_severity_description: The description of the display level whose
  19. * results this represents.
  20. * - quail_severity_results: An array containing the results for this display
  21. * test_problems.
  22. * - quail_renderred_tests: An array of the renderred test data results as
  23. * passed to the quail_api_test theme.
  24. *
  25. * Styling Variables:
  26. * - quail_base_class: A generated, generic, css class.
  27. * - quail_specific_class: A generated, somewhat unique, css class.
  28. * - quail_markup_format: The filter format to use for check_markup calls.
  29. * - quail_title_block: The type of block in which the title is.
  30. * - quail_display_title: Define whether or not to display the title block.
  31. * - quail_display_description: Define whether or not to display the title
  32. * block.
  33. */
  34. #}
  35. {% if quail_severity_results.total > 0 %}
  36. <div class="{{ quail_specific_class }}-wrapper {{ quail_base_class }}-wrapper">
  37. {% if quail_display_title %}
  38. <{{ quail_title_block }} class="{{ quail_base_class }}-title">{{ quail_severity_human_name }}</{{ quail_title_block }}>
  39. {% endif %}
  40. {% if quail_display_description %}
  41. <div class="{{ quail_base_class }}-description description">{{ quail_severity_description }}</div>
  42. {% endif %}
  43. <div class="{{ quail_base_class }}-reports">{{ quail_renderred_tests }}</div>
  44. </div>
  45. {% endif %}