Skip to main content
1 of 2
Rainer Feike
  • 2.6k
  • 12
  • 24

Wrap your element in a container like here:

$form['frame'] = ['#type' => 'container', '#attributes' => ['class' => ['container-inline']]];
$form['frame']['e_mail'] = [
      '#type' => 'email',
      '#title' => $this->t('EMail'),
    ];
Rainer Feike
  • 2.6k
  • 12
  • 24