public function ModalDeleteForm::getConfirmText in Modal 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
- 8.2 src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
- 5.0.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
- 4.1.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides EntityConfirmFormBase::getConfirmText
File
- src/
Form/ ModalDeleteForm.php, line 31
Class
- ModalDeleteForm
- Builds the form to delete Modal entities.
Namespace
Drupal\modal_page\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}