public function DownloadCountResetForm::getConfirmText in Download Count 8
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ConfirmFormBase::getConfirmText
File
- src/
Form/ DownloadCountResetForm.php, line 121
Class
- DownloadCountResetForm
- Implements the reset form controller.
Namespace
Drupal\download_count\FormCode
public function getConfirmText() {
if ($this->dcEntry != 'all') {
return $this
->t('Reset');
}
else {
return $this
->t('Reset All');
}
}