You are here

public function GathercontentMultistepFormBase::buildForm in GatherContent 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 FormInterface::buildForm

2 calls to GathercontentMultistepFormBase::buildForm()
GathercontentContentImportConfirmForm::buildForm in src/Form/GathercontentContentImportConfirmForm.php
Form constructor.
GathercontentContentImportSelectForm::buildForm in src/Form/GathercontentContentImportSelectForm.php
Form constructor.
2 methods override GathercontentMultistepFormBase::buildForm()
GathercontentContentImportConfirmForm::buildForm in src/Form/GathercontentContentImportConfirmForm.php
Form constructor.
GathercontentContentImportSelectForm::buildForm in src/Form/GathercontentContentImportSelectForm.php
Form constructor.

File

src/Form/GathercontentMultistepFormBase.php, line 75

Class

GathercontentMultistepFormBase
Class GathercontentMultistepFormBase.

Namespace

Drupal\gathercontent\Form

Code

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