You are here

public function SmartDateFormatForm::__construct in Smart Date 8

Same name and namespace in other branches
  1. 8.2 src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  2. 3.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  3. 3.0.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  4. 3.1.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  5. 3.2.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  6. 3.3.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__construct()
  7. 3.4.x src/Form/SmartDateFormatForm.php \Drupal\smart_date\Form\SmartDateFormatForm::__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

src/Form/SmartDateFormatForm.php, line 41

Class

SmartDateFormatForm
Form controller for smart date format edit forms.

Namespace

Drupal\smart_date\Form

Code

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