You are here

public function ConfigPagesClearConfirmationForm::getConfirmText in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Form/ConfigPagesClearConfirmationForm.php \Drupal\config_pages\Form\ConfigPagesClearConfirmationForm::getConfirmText()
  2. 8.2 src/Form/ConfigPagesClearConfirmationForm.php \Drupal\config_pages\Form\ConfigPagesClearConfirmationForm::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/ConfigPagesClearConfirmationForm.php, line 51

Class

ConfigPagesClearConfirmationForm
Action on clear ConfigPage submit form.

Namespace

Drupal\config_pages\Form

Code

public function getConfirmText() {
  return $this
    ->t('Clear it Now!');
}