'details', '#title' => 'Root element', '#open' => TRUE, '#required' => !empty($required), ]; $form['meta'] = [ '#type' => 'details', '#title' => 'Group element', '#open' => TRUE, '#group' => 'details', ]; $form['meta']['element'] = [ '#type' => 'textfield', '#title' => 'Nest in details element', ]; return $form; } /** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { } }