public function FillPdfFormDuplicateForm::getQuestion in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 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\FormCode
public function getQuestion() {
$label = trim($this
->getEntity()
->label()) ?: $this
->t('unnamed');
return $this
->t('Create duplicate of %label?', [
'%label' => $label,
]);
}