public function AdminSettingsForm::buildForm in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::buildForm()
- 8.3 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::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 ConfigFormBase::buildForm
File
- src/
Form/ AdminSettingsForm.php, line 78
Class
- AdminSettingsForm
- Defines a form that configures settings.
Namespace
Drupal\acquia_lift\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this
->preValidateData();
$form['credential'] = $this
->buildCredentialForm();
// Data collection settings.
$form['data_collection_settings'] = [
'#type' => 'vertical_tabs',
'#title' => $this
->t('Data collection settings'),
];
$form['identity'] = $this
->buildIdentityForm();
$form['field_mappings'] = $this
->buildFieldMappingsForm();
$form['udf_person_mappings'] = $this
->buildUdfMappingsForm('person');
$form['udf_touch_mappings'] = $this
->buildUdfMappingsForm('touch');
$form['udf_event_mappings'] = $this
->buildUdfMappingsForm('event');
$form['visibility'] = $this
->buildVisibilityForm();
$form['advanced'] = $this
->buildAdvancedForm();
return parent::buildForm($form, $form_state);
}