You are here

public function SmartDateFormatDeleteForm::getQuestion in Smart Date 8

Same name and namespace in other branches
  1. 8.2 src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  2. 3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  3. 3.0.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  4. 3.1.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  5. 3.2.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  6. 3.3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
  7. 3.4.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()

Overrides EntityDeleteFormTrait::getQuestion

File

src/Form/SmartDateFormatDeleteForm.php, line 45

Class

SmartDateFormatDeleteForm
Builds a form to delete a smart date format.

Namespace

Drupal\smart_date\Form

Code

public function getQuestion() {
  return t('Are you sure you want to delete the format %name : %format?', [
    '%name' => $this->entity
      ->label(),
    '%format' => $this->dateFormatter
      ->format(\Drupal::time()
      ->getRequestTime(), $this->entity
      ->id()),
  ]);
}