You are here

public function MultistepFormBase::buildForm in GatherContent 8.3

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 FormInterface::buildForm

1 call to MultistepFormBase::buildForm()
ContentSelectForm::buildForm in src/Form/ContentSelectForm.php
Form constructor.
1 method overrides MultistepFormBase::buildForm()
ContentSelectForm::buildForm in src/Form/ContentSelectForm.php
Form constructor.

File

src/Form/MultistepFormBase.php, line 96

Class

MultistepFormBase
Class MultistepFormBase.

Namespace

Drupal\gathercontent\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = [];
  $form['actions']['#type'] = 'actions';
  $form['actions']['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Submit'),
    '#button_type' => 'primary',
    '#weight' => 10,
  ];
  return $form;
}