navigation_test.icons.yml

Same filename and directory in other branches
  1. main core/modules/navigation/tests/navigation_test/navigation_test.icons.yml
core/modules/navigation/tests/navigation_test/navigation_test.icons.yml

File

core/modules/navigation/tests/navigation_test/navigation_test.icons.yml

View source
  1. navigation_test:
  2. enabled: true
  3. label: "Drupal Navigation Test"
  4. description: "Icons available within Drupal Navigation Test module."
  5. version: 11.x
  6. license:
  7. name: GPL2-or-later
  8. url: https://api.drupal.org/api/drupal/core%21LICENSE.txt/11.x
  9. gpl-compatible: true
  10. extractor: svg
  11. config:
  12. sources:
  13. - assets/icons/*.svg
  14. settings:
  15. size:
  16. title: "Size"
  17. description: "Set a size for this icon."
  18. type: "integer"
  19. default: 20
  20. class:
  21. title: "Class"
  22. description: "Set a class for this icon."
  23. type: "string"
  24. default: ""
  25. template: >
  26. <svg
  27. {{ attributes
  28. .setAttribute('viewBox', attributes.viewBox|default('0 0 24 24'))
  29. .setAttribute('class', class)
  30. .setAttribute('width', size|default('20'))
  31. .setAttribute('height', size|default('20'))
  32. .setAttribute('aria-hidden', 'true')
  33. }}
  34. >
  35. {{ content }}
  36. </svg>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.