function DateFormatDeleteForm::create

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

Overrides FormBase::create

File

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

Class

DateFormatDeleteForm
Builds a form to delete a date format.

Namespace

Drupal\system\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('date.formatter'), $container->get('datetime.time'));
}

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