bag.html.twig 614 B

1234567891011121314151617181920
  1. <table class="{{ class|default('') }}">
  2. <thead>
  3. <tr>
  4. <th scope="col" class="key">{{ labels is defined ? labels[0] : 'Key' }}</th>
  5. <th scope="col">{{ labels is defined ? labels[1] : 'Value' }}</th>
  6. </tr>
  7. </thead>
  8. <tbody>
  9. {% for key in bag.keys|sort %}
  10. <tr>
  11. <th>{{ key }}</th>
  12. <td>{{ profiler_dump(bag.get(key), maxDepth=maxDepth|default(0)) }}</td>
  13. </tr>
  14. {% else %}
  15. <tr>
  16. <td colspan="2">(no data)</td>
  17. </tr>
  18. {% endfor %}
  19. </tbody>
  20. </table>