function EntityConfirmFormBase::getConfirmText

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

Overrides ConfirmFormInterface::getConfirmText

1 call to EntityConfirmFormBase::getConfirmText()
EntityConfirmFormBase::actions in core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
Returns an array of supported actions for the current entity form.
5 methods override EntityConfirmFormBase::getConfirmText()
BreakLockForm::getConfirmText in core/modules/views_ui/src/Form/BreakLockForm.php
Returns a caption for the button that confirms the action.
FilterDisableForm::getConfirmText in core/modules/filter/src/Form/FilterDisableForm.php
Returns a caption for the button that confirms the action.
ImageStyleFlushForm::getConfirmText in core/modules/image/src/Form/ImageStyleFlushForm.php
Returns a caption for the button that confirms the action.
VocabularyResetForm::getConfirmText in core/modules/taxonomy/src/Form/VocabularyResetForm.php
Returns a caption for the button that confirms the action.
WorkflowDeleteForm::getConfirmText in core/modules/workflows/src/Form/WorkflowDeleteForm.php
Returns a caption for the button that confirms the action.

File

core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 33

Class

EntityConfirmFormBase
Provides a generic base class for an entity-based confirmation form.

Namespace

Drupal\Core\Entity

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.