You are here

public function WebformCiviCRMSettingsForm::buildForm in Webform CiviCRM Integration 8.5

@todo slowly move parts of the D7 handling into here.

Overrides FormInterface::buildForm

File

src/Form/WebformCiviCRMSettingsForm.php, line 51

Class

WebformCiviCRMSettingsForm

Namespace

Drupal\webform_civicrm\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $webform = $this
    ->getWebform();
  $admin_form = \Drupal::service('webform_civicrm.admin_form')
    ->initialize($form, $form_state, $webform);
  $form = $admin_form
    ->buildForm();
  return $form;
}