public function HtmlTitleSettingConfigForm::buildForm in HTML Title 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/ HtmlTitleSettingConfigForm.php, line 32
Class
- HtmlTitleSettingConfigForm
- Class HtmlTitleSettingConfigForm.
Namespace
Drupal\html_title\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config('html_title.settings');
$form['allow_html_tags'] = [
'#type' => 'textfield',
'#title' => $this
->t('Allow html tags'),
'#maxlength' => 64,
'#size' => 64,
'#default_value' => $config
->get('allow_html_tags'),
];
return parent::buildForm($form, $form_state);
}