You are here

public function ContentEntityConfirmFormBase::getConfirmText in Zircon Profile 8.0

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

Returns a caption for the button that confirms the action.

Return value

string The form confirmation text.

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.
2 methods override ContentEntityConfirmFormBase::getConfirmText()
FeedItemsDeleteForm::getConfirmText in core/modules/aggregator/src/Form/FeedItemsDeleteForm.php
Returns a caption for the button that confirms the action.
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 36
Contains \Drupal\Core\Entity\ContentEntityConfirmFormBase.

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