public function EntityConfirmFormBase::getConfirmText in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php \Drupal\Core\Entity\EntityConfirmFormBase::getConfirmText()
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
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\EntityCode
public function getConfirmText() {
  return $this
    ->t('Confirm');
}