You are here

public function ModulesUninstallConfirmForm::getConfirmText in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::getConfirmText()
  2. 9 core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

core/modules/system/src/Form/ModulesUninstallConfirmForm.php, line 111

Class

ModulesUninstallConfirmForm
Builds a confirmation form to uninstall selected modules.

Namespace

Drupal\system\Form

Code

public function getConfirmText() {
  return $this
    ->t('Uninstall');
}