You are here

public function YamlFormToWebformMigrateForm::getDescription in YAML Form 8

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides ConfirmFormBase::getDescription

File

modules/yamlform_to_webform/src/Form/YamlFormToWebformMigrateForm.php, line 63

Class

YamlFormToWebformMigrateForm
YAML Form to Webform migrate form.

Namespace

Drupal\yamlform_to_webform\Form

Code

public function getDescription() {
  $build = [
    'description' => [
      '#markup' => '<p>' . $this
        ->t('This will immediately migrate all YAML Form related configuration and submissions to the Webform module.') . '</p>' . '<p>' . $this
        ->t('The migration may take a few minutes.') . '</p>',
    ],
    'items' => [
      '#theme' => 'item_list',
      '#title' => $this
        ->t('After the migration has completed, please review all...'),
      '#items' => [
        $this
          ->t('Forms'),
        $this
          ->t('Blocks'),
        $this
          ->t('Content types'),
        $this
          ->t('Fields'),
        $this
          ->t('Links'),
        $this
          ->t('etc...'),
      ],
    ],
  ];
  return \Drupal::service('renderer')
    ->render($build);
}