You are here

public function ThemeKeyRuleDeleteForm::getConfirmText in ThemeKey 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/ThemeKeyRuleDeleteForm.php, line 37
Contains Drupal\themekey\Form\ThemeKeyRuleDeleteForm.

Class

ThemeKeyRuleDeleteForm
Builds the form to delete a ThemeKeyRule.

Namespace

Drupal\themekey\Form

Code

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