public function SetupForm::buildForm in Acquia Connector 8
Same name and namespace in other branches
- 8.2 src/Form/SetupForm.php \Drupal\acquia_connector\Form\SetupForm::buildForm()
- 3.x src/Form/SetupForm.php \Drupal\acquia_connector\Form\SetupForm::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/ SetupForm.php, line 69
Class
- SetupForm
- Acquia Connector setup form.
Namespace
Drupal\acquia_connector\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$storage = $form_state
->getStorage();
if (empty($storage['choose'])) {
return $this
->buildSetupForm($form_state);
}
else {
return $this
->buildChooseForm($form_state);
}
}