You are here

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\Form

Code

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