You are here

public function LockrMigrateForm::buildForm in Lockr 8.2

Same name and namespace in other branches
  1. 8.4 src/Form/LockrMigrateForm.php \Drupal\lockr\Form\LockrMigrateForm::buildForm()
  2. 8.3 src/Form/LockrMigrateForm.php \Drupal\lockr\Form\LockrMigrateForm::buildForm()
  3. 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

LockrMigrateForm

Namespace

Drupal\lockr\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => 'Migrate to Production',
  ];
  return $form;
}