You are here

public function EntityDeleteFormTrait::getConfirmText in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getConfirmText()
  2. 10 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php \Drupal\Core\Entity\EntityDeleteFormTrait::getConfirmText()
1 method overrides EntityDeleteFormTrait::getConfirmText()
BlockDeleteForm::getConfirmText in core/modules/block/src/Form/BlockDeleteForm.php

File

core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 56

Class

EntityDeleteFormTrait
Provides a trait for an entity deletion form.

Namespace

Drupal\Core\Entity

Code

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