You are here

public function FileHashGenerateForm::getDescription in File Hash 8

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides ConfirmFormBase::getDescription

File

src/Form/FileHashGenerateForm.php, line 32

Class

FileHashGenerateForm
Implements the file MIME generate settings form.

Namespace

Drupal\filehash\Form

Code

public function getDescription() {
  return $this
    ->t('Are you sure you want to generate hashes for all previously uploaded files? Hashes for @count uploaded files will be generated.', [
    '@count' => number_format(GenerateBatch::count()),
  ]);
}