public function DateFormatFormBase::__construct in Drupal 9
Same name and namespace in other branches
- 8 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.
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;
}