public function UserLoginBarForm::buildForm in UserLoginBar 8
File
- lib/Drupal/userloginbar/Form/UserLoginBarForm.php, line 26
- Contains \Drupal\system\Form\SiteMaintenanceModeForm.
Class
- UserLoginBarForm
- Defines a form to configure maintenance settings for this site.
Namespace
Drupal\userloginbar\Form
Code
public function buildForm(array $form, array &$form_state) {
$config = $this->configFactory
->get('userloginbar.settings');
$form['text'] = array(
'#type' => 'fieldset',
'#title' => t('Userloginbar Settings'),
);
$form['text']['disable_welcome_box'] = array(
'#type' => 'checkbox',
'#title' => t('Check this box, if you want to disable welcome box when the user logs in!'),
'#default_value' => $config
->get('disable_welcome_box'),
);
return parent::buildForm($form, $form_state);
}