You are here

avatar-preview-radio.html.twig in Avatar Kit 8

Default theme implementation for a 'avatar_preview_radio' #type form element.

Available variables:

  • attributes: A list of HTML attributes for the wrapper element.
  • image: Optional avatar preview image.
  • radio: A radio element.

File

templates/avatar-preview-radio.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a 'avatar_preview_radio' #type form element.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the wrapper element.
  8. * - image: Optional avatar preview image.
  9. * - radio: A radio element.
  10. *
  11. * @see template_preprocess_avatar_preview_radio()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <div{{ attributes }}>
  17. {% if image %}
  18. <label for="{{ radio['#id'] }}">{{ image }}</label>
  19. {% endif %}
  20. {{ radio }}
  21. </div>