public function RestExampleClientDelete::getConfirmText in Examples for Developers 3.x
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ConfirmFormBase::getConfirmText
File
- modules/
rest_example/ src/ Form/ RestExampleClientDelete.php, line 67
Class
- RestExampleClientDelete
- Delete a new node on a remote Drupal site.
Namespace
Drupal\rest_example\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}