I have a drupal 8 form as follows:
$form['extra_fields']['email'] = [ '#type' => 'checkbox', '#options' => ['email' => 'email'], '#title' => $this->t('Email') ]; $form['email']['required'] = array( '#type' => 'radios', '#default_value' => 0, '#options' => array(0 => $this->t('Required'), 1 => $this->t('Not Required')), );
which shows up as:
I would like to have the radios a bit indented. Is it possible to achieve this? Also, how to make the radio buttons inline?