You are here

public function ThemeExperimentalConfirmForm::getConfirmText in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Form/ThemeExperimentalConfirmForm.php \Drupal\system\Form\ThemeExperimentalConfirmForm::getConfirmText()
  2. 9 core/modules/system/src/Form/ThemeExperimentalConfirmForm.php \Drupal\system\Form\ThemeExperimentalConfirmForm::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/ThemeExperimentalConfirmForm.php, line 75

Class

ThemeExperimentalConfirmForm
Builds a confirmation form for enabling experimental themes.

Namespace

Drupal\system\Form

Code

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