public function PromotionDisableForm::getConfirmText in Commerce Core 8.2
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ContentEntityConfirmFormBase::getConfirmText
File
- modules/
promotion/ src/ Form/ PromotionDisableForm.php, line 26
Class
- PromotionDisableForm
- Defines the promotion disable form.
Namespace
Drupal\commerce_promotion\FormCode
public function getConfirmText() {
return $this
->t('Disable');
}