You are here

public function ModalDeleteForm::getConfirmText in Modal 4.0.x

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

File

src/Form/ModalDeleteForm.php, line 31

Class

ModalDeleteForm
Builds the form to delete Modal entities.

Namespace

Drupal\modal_page\Form

Code

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