You are here

public function DateFormatFormBase::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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 45
Contains \Drupal\system\Form\DateFormatFormBase.

Class

DateFormatFormBase
Provides a base form for date formats.

Namespace

Drupal\system\Form

Code

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