public function BakeryPullForm::buildForm in Bakery Single Sign-On System 8.2
Form for admins to pull accounts.
Overrides FormInterface::buildForm
File
- src/
Forms/ BakeryPullForm.php, line 39
Class
- BakeryPullForm
- Contribute form.
Namespace
Drupal\bakery\FormsCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['or_email'] = [
'#type' => 'radios',
'#options' => [
0 => t('Username'),
1 => t('Username or email'),
],
'#default_value' => 0,
];
$form['name'] = [
'#type' => 'textfield',
'#required' => TRUE,
];
$form['submit'] = [
'#type' => 'submit',
'#value' => $this
->t('Request account'),
];
return $form;
}