public function ContactDeleteForm::getConfirmText in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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
- modules/
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\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}