You are here

public function XmlSitemapDeleteForm::getConfirmText in XML sitemap 8

Same name and namespace in other branches
  1. 2.x src/Form/XmlSitemapDeleteForm.php \Drupal\xmlsitemap\Form\XmlSitemapDeleteForm::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/XmlSitemapDeleteForm.php, line 31

Class

XmlSitemapDeleteForm
Builds the form to delete a sitemap.

Namespace

Drupal\xmlsitemap\Form

Code

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