function ConfirmFormBase::getConfirmText

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/ConfirmFormBase.php \Drupal\Core\Form\ConfirmFormBase::getConfirmText()
  2. 10 core/lib/Drupal/Core/Form/ConfirmFormBase.php \Drupal\Core\Form\ConfirmFormBase::getConfirmText()
  3. 11.x core/lib/Drupal/Core/Form/ConfirmFormBase.php \Drupal\Core\Form\ConfirmFormBase::getConfirmText()

Overrides ConfirmFormInterface::getConfirmText

1 call to ConfirmFormBase::getConfirmText()
ConfirmFormBase::buildForm in core/lib/Drupal/Core/Form/ConfirmFormBase.php
23 methods override ConfirmFormBase::getConfirmText()
BanDelete::getConfirmText in core/modules/ban/src/Form/BanDelete.php
BookRemoveForm::getConfirmText in core/modules/book/src/Form/BookRemoveForm.php
ConfigTranslationDeleteForm::getConfirmText in core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
ConfirmFormTestForm::getConfirmText in core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
DeleteForm::getConfirmText in core/modules/forum/src/Form/DeleteForm.php

... See full list

File

core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 20

Class

ConfirmFormBase
Provides an generic base class for a confirmation form.

Namespace

Drupal\Core\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.