Skip to content
Snippets Groups Projects

Draft: Issue #3426100: Make GitLab CI tests pass on Drupal 11

Files

+ 7
1
@@ -15,7 +15,13 @@ class FillPdfFormDeleteForm extends FillPdfFormConfirmFormBase {
* {@inheritdoc}
*/
public function getQuestion() {
return $this->t('Are you sure you want to delete %name?', ['%name' => $this->entity->label()]);
$label = $this->entity->label();
if ($label) {
return $this->t('Are you sure you want to delete %name?', ['%name' => $label]);
}
else {
return $this->t('Are you sure you want to delete this FillPDF form?');
}
}
/**
Loading