You are here

public function SimpleNodeConfirmImportForm::getQuestion in Simple Node Importer 8

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/SimpleNodeConfirmImportForm.php, line 164

Class

SimpleNodeConfirmImportForm
Defines a confirmation form to confirm deletion of something by id.

Namespace

Drupal\simple_node_importer\Form

Code

public function getQuestion() {
  $critical_info = new FormattableMarkup('<p class="@class">If email id\'s provided in the "Authored By" column of your CSV match the existing users in the system, then data will be automatically imported. If not, the users will have to be created before importing the data.</p><p>Do you want to continue?</p>', [
    "@class" => "confirmation-info",
  ]);
  return $this
    ->t("@critical_info", [
    "@critical_info" => $critical_info,
  ]);
}