You are here

public function BookingDeleteForm::getConfirmText in Booking and Availability Management Tools for Drupal 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

modules/bat_booking/src/Entity/Form/BookingDeleteForm.php, line 38
Contains \Drupal\bat_booking\Entity\Form\BookingDeleteForm.

Class

BookingDeleteForm
Provides a form for deleting Unit type entities.

Namespace

Drupal\bat_booking\Entity\Form

Code

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