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.
See also
File
templates/avatar-preview-radio.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_avatar_preview_radio()
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes }}>
- {% if image %}
- <label for="{{ radio['#id'] }}">{{ image }}</label>
- {% endif %}
- {{ radio }}
- </div>