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