You are here

public function DeleteAchievementsForm::getCancelText in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Form/DeleteAchievementsForm.php \Drupal\opigno_learning_path\Form\DeleteAchievementsForm::getCancelText()

Returns a caption for the link which cancels the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form cancellation text.

Overrides ConfirmFormBase::getCancelText

1 call to DeleteAchievementsForm::getCancelText()
DeleteAchievementsForm::buildForm in src/Form/DeleteAchievementsForm.php
Form constructor.

File

src/Form/DeleteAchievementsForm.php, line 123

Class

DeleteAchievementsForm
Class LearningPathAdminSettingsForm.

Namespace

Drupal\opigno_learning_path\Form

Code

public function getCancelText() {
  return $this
    ->t('No');
}