You are here

public function MenuDeleteItem::getConfirmText in Menu Delete 8.2

Same name and namespace in other branches
  1. 8 src/Form/MenuDeleteItem.php \Drupal\menu_delete\Form\MenuDeleteItem::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

src/Form/MenuDeleteItem.php, line 93

Class

MenuDeleteItem
Class MenuDeleteItem.

Namespace

Drupal\menu_delete\Form

Code

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