You are here

public function CommentSelectForm::buildForm in WordPress Migrate 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

File

wordpress_migrate_ui/src/Form/CommentSelectForm.php, line 23

Class

CommentSelectForm
Simple wizard step form.

Namespace

Drupal\wordpress_migrate_ui\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  // Start clean in case we came here via Previous.
  $cached_values = $form_state
    ->getTemporaryValue('wizard');
  unset($cached_values['comment']);
  $form_state
    ->setTemporaryValue('wizard', $cached_values);
  $form['overview'] = [
    '#markup' => $this
      ->t('WordPress blogs contain comments.'),
  ];
  return $form;
}