You are here

public function ModalDeleteForm::getConfirmText in Modal 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
  2. 5.0.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
  3. 4.0.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getConfirmText()
  4. 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 ContentEntityConfirmFormBase::getConfirmText

File

src/Form/ModalDeleteForm.php, line 31

Class

ModalDeleteForm
Class: ModalDeleteForm.

Namespace

Drupal\modal_page\Form

Code

public function getConfirmText() {
  return $this
    ->t('Delete');
}