function DateFormatFormBase::__construct

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

Constructs a new date format form.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date service.

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $date_format_storage: The date format storage.

1 call to DateFormatFormBase::__construct()
DateFormatEditForm::__construct in core/modules/system/src/Form/DateFormatEditForm.php
Constructs a DateFormatEditForm object.
1 method overrides DateFormatFormBase::__construct()
DateFormatEditForm::__construct in core/modules/system/src/Form/DateFormatEditForm.php
Constructs a DateFormatEditForm object.

File

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

Class

DateFormatFormBase
Provides a base form for date formats.

Namespace

Drupal\system\Form

Code

public function __construct(DateFormatterInterface $date_formatter, ConfigEntityStorageInterface $date_format_storage) {
    $this->dateFormatter = $date_formatter;
    $this->dateFormatStorage = $date_format_storage;
}

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