public function ThemeSwitcherRuleDeleteForm::getConfirmText in Theme Switcher Rules 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/ ThemeSwitcherRuleDeleteForm.php, line 73
Class
- ThemeSwitcherRuleDeleteForm
- Builds the form to delete a theme_switcher_rule.
Namespace
Drupal\theme_switcher\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}