public function LogintobogganHelpForm::buildForm in LoginToboggan 8
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/ LogintobogganHelpForm.php, line 65
Class
- LogintobogganHelpForm
- Configure search settings for this site.
Namespace
Drupal\logintoboggan\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$example = $this
->t('
[user:name],
Thank you for registering.
IMPORTANT:
For full site access, you will need to click on this link or copy and paste it in your browser:
[user:validate-url]
This will verify your account and log you into the site. In the future you will be able to log in to [site:login-url] using the username and password that you created during registration.
');
$form['foo'] = [
'#type' => 'textarea',
'#default_value' => $example,
'#rows' => 15,
];
return $form;
}