Override core radios template to add class

This commit is contained in:
benjamin melançon 2018-12-11 13:36:10 -05:00
parent 7a286515ab
commit 4764bda7a4

View file

@ -0,0 +1,13 @@
{#
/**
* @file
* Theme override for a 'radios' #type form element.
*
* Available variables
* - attributes: A list of HTML attributes for the wrapper element.
* - children: The rendered radios.
*
* @see template_preprocess_radios()
*/
#}
<div{{ attributes.addClass('form-radios') }}>{{ children }}</div>