You are here

public function DeleteForm::getConfirmText in Optimizely 8

Same name and namespace in other branches
  1. 8.0 src/DeleteForm.php \Drupal\optimizely\DeleteForm::getConfirmText()

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/DeleteForm.php, line 42

Class

DeleteForm
Implements the confirmation form for deleting a project.

Namespace

Drupal\optimizely

Code

public function getConfirmText() {

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