You are here

public function ILTDeleteForm::getQuestion in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/Form/ILTDeleteForm.php \Drupal\opigno_ilt\Form\ILTDeleteForm::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

File

src/Form/ILTDeleteForm.php, line 56

Class

ILTDeleteForm
Provides a form for deleting a opigno_ilt entity.

Namespace

Drupal\opigno_ilt\Form

Code

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