public function LockrMigrateForm::buildForm in Lockr 8.2
Same name and namespace in other branches
- 8.4 src/Form/LockrMigrateForm.php \Drupal\lockr\Form\LockrMigrateForm::buildForm()
- 8.3 src/Form/LockrMigrateForm.php \Drupal\lockr\Form\LockrMigrateForm::buildForm()
- 4.x src/Form/LockrMigrateForm.php \Drupal\lockr\Form\LockrMigrateForm::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 FormInterface::buildForm
File
- src/
Form/ LockrMigrateForm.php, line 60
Class
Namespace
Drupal\lockr\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['submit'] = [
'#type' => 'submit',
'#value' => 'Migrate to Production',
];
return $form;
}