public function XBBCodeHandlerForm::buildForm in Extensible BBCode 8.2
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/ XBBCodeHandlerForm.php, line 33 - Contains \Drupal\xbbcode\Form\XBBCodeTagForm.
Class
Namespace
Drupal\xbbcode\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['global'] = [
'#weight' => -1,
'#markup' => $this
->t('You are changing the global settings. These settings can be overridden in each <a href="@url">text format</a> that uses Extensible BBCode.', [
'@url' => Drupal::url('filter.admin_overview'),
]),
];
$defaults = $this
->config('xbbcode.settings')
->get('tags');
$form = self::buildFormHandlers($form, $defaults);
$form = parent::buildForm($form, $form_state);
return $form;
}