Provides a form element for a set of radio buttons.
Properties:
#options: An associative array, where the keys are the returned values for each radio button, and the values are the labels next to each radio button.
Usage example:
$form['settings']['active'] = array(
'#type' => 'radios',
'#title' => $this->t('Poll status'),
'#default_value' => 1,
'#options' => array(0 => $this->t('Closed'), 1 => $this->t('Active')),
);
Plugin annotation
@FormElement("radios