function ContentEntityConfirmFormBase::getConfirmText

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

Overrides ConfirmFormInterface::getConfirmText

1 call to ContentEntityConfirmFormBase::getConfirmText()
ContentEntityConfirmFormBase::actions in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Returns an array of supported actions for the current entity form.
1 method overrides ContentEntityConfirmFormBase::getConfirmText()
UserCancelForm::getConfirmText in core/modules/user/src/Form/UserCancelForm.php
Returns a caption for the button that confirms the action.

File

core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 31

Class

ContentEntityConfirmFormBase
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.