You are here

flags.html.twig in Flags 8

Default theme implementation for flag.

Available variables:

  • flag: Flag code.
  • tag: HTML tag that should be used for the flag.
  • attributes: Additional attributes that should be added to the tag.

File

templates/flags.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for flag.
  5. *
  6. * Available variables:
  7. * - flag: Flag code.
  8. * - tag: HTML tag that should be used for the flag.
  9. * - attributes: Additional attributes that should be added to the tag.
  10. *
  11. * @see template_preprocess_flags()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {{ attach_library('flags/flags') }}
  17. <{{ tag }} {{ attributes }}></{{ tag }}>