You are here

public function IngredientDeleteForm::getConfirmText in Recipe 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/ingredient/src/Form/IngredientDeleteForm.php, line 74

Class

IngredientDeleteForm
Provides a form for deleting an ingredient.

Namespace

Drupal\ingredient\Form

Code

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