You are here

public function MenuLinkResetForm::getConfirmText in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/menu_ui/src/Form/MenuLinkResetForm.php \Drupal\menu_ui\Form\MenuLinkResetForm::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/menu_ui/src/Form/MenuLinkResetForm.php, line 86

Class

MenuLinkResetForm
Defines a confirmation form for resetting a single modified menu link.

Namespace

Drupal\menu_ui\Form

Code

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