public function SmartDateFormatDeleteForm::getQuestion in Smart Date 8
Same name and namespace in other branches
- 8.2 src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 3.0.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 3.1.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 3.2.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 3.3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::getQuestion()
- 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\FormCode
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()),
]);
}