You are here

public function DirectoryDeleteForm::getQuestion in Private files download permission 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/DirectoryDeleteForm.php \Drupal\pfdp\Form\DirectoryDeleteForm::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/DirectoryDeleteForm.php, line 18

Class

DirectoryDeleteForm
Directory delete form for private_files_download_permission.

Namespace

Drupal\pfdp\Form

Code

public function getQuestion() {
  $pfdp_directory = $this->entity;

  //
  return $this
    ->t('Are you sure you want to delete the directory %path from the control list?', [
    '%path' => $pfdp_directory->path,
  ]);
}