You are here

public function MegaMenuDelete::getConfirmText in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/Form/MegaMenuDelete.php \Drupal\tb_megamenu\Form\MegaMenuDelete::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/MegaMenuDelete.php, line 31

Class

MegaMenuDelete
Builds the form to delete a megamenu.

Namespace

Drupal\tb_megamenu\Form

Code

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