public function FormModeManagerForm::buildForm in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/Form/FormModeManagerForm.php \Drupal\form_mode_manager\Form\FormModeManagerForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormModeManagerFormBase::buildForm
File
- src/
Form/ FormModeManagerForm.php, line 43
Class
- FormModeManagerForm
- Configure Form Mode Manager common settings.
Namespace
Drupal\form_mode_manager\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
if (isset($form['empty'])) {
return $form;
}
$form['vertical_tabs'] = [
'#type' => 'vertical_tabs',
];
$this
->buildFormModeForm($form);
return $form;
}