public function PromotionEnableForm::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/ PromotionEnableForm.php, line 26
Class
- PromotionEnableForm
- Defines the promotion enable form.
Namespace
Drupal\commerce_promotion\FormCode
public function getConfirmText() {
return $this
->t('Enable');
}