You are here

public function SmartDateFormatDeleteForm::__construct in Smart Date 8

Same name and namespace in other branches
  1. 8.2 src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  2. 3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  3. 3.0.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  4. 3.1.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  5. 3.2.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  6. 3.3.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()
  7. 3.4.x src/Form/SmartDateFormatDeleteForm.php \Drupal\smart_date\Form\SmartDateFormatDeleteForm::__construct()

Constructs an SmartDateFormatDeleteForm object.

Parameters

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

File

src/Form/SmartDateFormatDeleteForm.php, line 29

Class

SmartDateFormatDeleteForm
Builds a form to delete a smart date format.

Namespace

Drupal\smart_date\Form

Code

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