public function DownloadCountResetForm::getQuestion in Download Count 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/ DownloadCountResetForm.php, line 140
Class
- DownloadCountResetForm
- Implements the reset form controller.
Namespace
Drupal\download_count\FormCode
public function getQuestion() {
if ($this->dcEntry != 'all') {
return $this
->t('Are you sure you want to reset the download count for %filename on %entity #%id?', [
'%filename' => $this->dcEntry->filename,
'%entity' => $this->dcEntry->type,
'%id' => $this->dcEntry->id,
]);
}
else {
return $this
->t('Are you sure you want to reset all download counts?');
}
}