function DateFormatFormBase::__construct
Same name in other branches
- 9 core/modules/system/src/Form/DateFormatFormBase.php \Drupal\system\Form\DateFormatFormBase::__construct()
- 8.9.x core/modules/system/src/Form/DateFormatFormBase.php \Drupal\system\Form\DateFormatFormBase::__construct()
- 11.x 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\FormCode
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.