public function AdminSettingsForm::buildForm in Acquia Lift Connector 8
Same name and namespace in other branches
- 8.4 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 71 - Contains \Drupal\acquia_lift\Form\AdminSettingsForm.
Class
- AdminSettingsForm
- Defines a form that configures settings.
Namespace
Drupal\acquia_lift\FormCode
public function buildForm(array $form, FormStateInterface $form_state, Request $request = NULL) {
$form['credential'] = $this
->buildCredentialForm();
// Data collection settings.
$form['data_collection_settings'] = [
'#type' => 'vertical_tabs',
'#title' => t('Data collection settings'),
];
$form['identity'] = $this
->buildIdentityForm();
$form['field_mappings'] = $this
->buildFieldMappingsForm();
$form['visibility'] = $this
->buildVisibilityForm();
$form['thumbnail_url'] = $this
->buildThumbnailUrlForm();
return parent::buildForm($form, $form_state);
}