You are here

public function EntityExportCsvDisableForm::getQuestion in Entity Export CSV 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/EntityExportCsvDisableForm.php, line 20

Class

EntityExportCsvDisableForm
Class EntityExportCsvDisableForm.

Namespace

Drupal\entity_export_csv\Form

Code

public function getQuestion() {
  return $this
    ->t('Disable @type: %label?', [
    '@type' => $this->entity
      ->getEntityType()
      ->getLabel(),
    '%label' => $this->entity
      ->label(),
  ]);
}