public function TokenCustomDeleteForm::getConfirmText in Custom Tokens 8
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ContentEntityConfirmFormBase::getConfirmText
File
- src/
Form/ TokenCustomDeleteForm.php, line 33
Class
- TokenCustomDeleteForm
- Provides a confirmation form for deleting a custom token entity.
Namespace
Drupal\token_custom\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}