A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

You can use wrapper_attributes property. $form['example'] = [ '#type' => 'textfield', '#title' => $this->t('Example'), '#wrapper_attributes' => ['class' => ['wrapper-class']], ];


Top 50 recent answers are included