You are here

public function FillPdfFormDuplicateForm::getQuestion in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/Form/FillPdfFormDuplicateForm.php \Drupal\fillpdf\Form\FillPdfFormDuplicateForm::getQuestion()

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/FillPdfFormDuplicateForm.php, line 18

Class

FillPdfFormDuplicateForm
Form controller for the FillPdfForm duplicate form.

Namespace

Drupal\fillpdf\Form

Code

public function getQuestion() {
  $label = trim($this
    ->getEntity()
    ->label()) ?: $this
    ->t('unnamed');
  return $this
    ->t('Create duplicate of %label?', [
    '%label' => $label,
  ]);
}