You are here

public function Fz152SettingsForms::buildForm in FZ152 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/Fz152SettingsForms.php, line 33

Class

Fz152SettingsForms
Configure example settings for this site.

Namespace

Drupal\fz152\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('fz152.forms');
  $form['forms'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Forms to apply checkbox'),
    '#default_value' => $config
      ->get('forms'),
    '#description' => $this
      ->t('Each form id on the new line, this names are supports wildcard: *_node_form. Also you can specify weight for checkbox: node_edit_news|99. For webforms you can use no weight: default display position under submit button'),
  ];
  return parent::buildForm($form, $form_state);
}