function DateFormatDeleteForm::getQuestion

Same name in other branches
  1. 9 core/modules/system/src/Form/DateFormatDeleteForm.php \Drupal\system\Form\DateFormatDeleteForm::getQuestion()
  2. 8.9.x core/modules/system/src/Form/DateFormatDeleteForm.php \Drupal\system\Form\DateFormatDeleteForm::getQuestion()
  3. 11.x core/modules/system/src/Form/DateFormatDeleteForm.php \Drupal\system\Form\DateFormatDeleteForm::getQuestion()

Overrides EntityDeleteFormTrait::getQuestion

File

core/modules/system/src/Form/DateFormatDeleteForm.php, line 53

Class

DateFormatDeleteForm
Builds a form to delete a date format.

Namespace

Drupal\system\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.