You are here

public function DemoConfigResetConfirm::getConfirmText in Demonstration site (Sandbox / Snapshot) 8

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/DemoConfigResetConfirm.php, line 91

Class

DemoConfigResetConfirm
This class return the form demo_config_reset_confirm to make sure that you are about to reset your configuration.

Namespace

Drupal\demo\Form

Code

public function getConfirmText() {
  return t('Delete');
}