public function PollDeleteForm::getConfirmText in Poll 8
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ContentEntityConfirmFormBase::getConfirmText
File
- src/
Form/ PollDeleteForm.php, line 38
Class
- PollDeleteForm
- Provides a form for deleting a poll.
Namespace
Drupal\poll\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}