You are here

public function FileManagementDeleteFileConfirmForm::getQuestion in File Management 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/FileManagementDeleteFileConfirmForm.php, line 38

Class

FileManagementDeleteFileConfirmForm
Defines a confirmation form for deleting mymodule data.

Namespace

Drupal\file_management\Form

Code

public function getQuestion() {
  return t('Do you want to delete the file "%label" ?', [
    '%label' => $this->file
      ->label(),
  ]);
}