You are here

public function ContactDeleteForm::getConfirmText in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/content_entity_example/src/Form/ContactDeleteForm.php \Drupal\content_entity_example\Form\ContactDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides ContentEntityConfirmFormBase::getConfirmText

File

content_entity_example/src/Form/ContactDeleteForm.php, line 35

Class

ContactDeleteForm
Provides a form for deleting a content_entity_example entity.

Namespace

Drupal\content_entity_example\Form

Code

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