You are here

public function NameListFormatDeleteConfirm::getConfirmText in Name Field 8

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/NameListFormatDeleteConfirm.php, line 31

Class

NameListFormatDeleteConfirm
Builds the form to delete a name format.

Namespace

Drupal\name\Form

Code

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