function DateFormatFormBase::create

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

Overrides FormBase::create

1 method overrides DateFormatFormBase::create()
DateFormatEditForm::create in core/modules/system/src/Form/DateFormatEditForm.php
Instantiates a new instance of this class.

File

core/modules/system/src/Form/DateFormatFormBase.php, line 47

Class

DateFormatFormBase
Provides a base form for date formats.

Namespace

Drupal\system\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('date.formatter'), $container->get('entity_type.manager')
        ->getStorage('date_format'));
}

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