You are here

public function DeleteForm::getConfirmText in Optimizely 8.3

Returns a caption for the button that confirms the action.

Return value

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

Overrides ConfirmFormBase::getConfirmText

File

src/Form/DeleteForm.php, line 44

Class

DeleteForm
Implements the confirmation form for deleting a project.

Namespace

Drupal\optimizely\Form

Code

public function getConfirmText() {

  // Default is 'Confirm'.
  return $this
    ->t('Delete');
}