You are here

public function EntityConfirmFormBase::getConfirmText in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php \Drupal\Core\Entity\EntityConfirmFormBase::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

string 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.
TaxonomyMenuDeleteForm::getConfirmText in modules/taxonomy_menu/src/Form/TaxonomyMenuDeleteForm.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.

File

core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 38
Contains \Drupal\Core\Entity\EntityConfirmFormBase.

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');
}