You are here

public function FileDeleteMultiple::getQuestion in Panopoly 8.2

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

modules/panopoly/panopoly_media/src/Form/FileDeleteMultiple.php, line 96

Class

FileDeleteMultiple
Provides a file deletion confirmation form.

Namespace

Drupal\panopoly_media\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->fileInfo), 'Are you sure you want to delete this item?', 'Are you sure you want to delete these items?');
}