You are here

public function RegistrationTypeDeleteForm::getQuestion in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Form/RegistrationTypeDeleteForm.php \Drupal\rng\Form\RegistrationTypeDeleteForm::getQuestion()
  2. 3.x src/Form/RegistrationTypeDeleteForm.php \Drupal\rng\Form\RegistrationTypeDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

1 call to RegistrationTypeDeleteForm::getQuestion()
RegistrationTypeDeleteForm::buildForm in src/Form/RegistrationTypeDeleteForm.php
Form constructor.

File

src/Form/RegistrationTypeDeleteForm.php, line 17

Class

RegistrationTypeDeleteForm
Form controller for registration types.

Namespace

Drupal\rng\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete registration type %label?', [
    '%label' => $this->entity
      ->label(),
  ]);
}